mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added the keyword "CARDNAME can't be enchanted.".
This commit is contained in:
@@ -895,9 +895,7 @@ public class GameAction {
|
||||
|
||||
if (entity instanceof Card) {
|
||||
final Card perm = (Card) entity;
|
||||
// I think the Keyword checks might be superfluous with
|
||||
// the isValid check
|
||||
if (!AllZoneUtil.isCardInPlay(perm) || perm.hasProtectionFrom(c)
|
||||
if (!AllZoneUtil.isCardInPlay(perm) || perm.hasProtectionFrom(c) || perm.hasKeyword("CARDNAME can't be enchanted.")
|
||||
|| ((tgt != null) && !perm.isValid(tgt.getValidTgts(), c.getController(), c))) {
|
||||
c.unEnchantEntity(perm);
|
||||
this.moveToGraveyard(c);
|
||||
|
||||
@@ -2479,7 +2479,7 @@ public class CardFactoryUtil {
|
||||
}
|
||||
}
|
||||
|
||||
if (kw.equals("CARDNAME can't be the target of Aura spells.")) {
|
||||
if (kw.equals("CARDNAME can't be the target of Aura spells.") || kw.equals("CARDNAME can't be enchanted.")) {
|
||||
if (spell.isAura() && spell.isSpell()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user