mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58: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) {
|
if (entity instanceof Card) {
|
||||||
final Card perm = (Card) entity;
|
final Card perm = (Card) entity;
|
||||||
// I think the Keyword checks might be superfluous with
|
if (!AllZoneUtil.isCardInPlay(perm) || perm.hasProtectionFrom(c) || perm.hasKeyword("CARDNAME can't be enchanted.")
|
||||||
// the isValid check
|
|
||||||
if (!AllZoneUtil.isCardInPlay(perm) || perm.hasProtectionFrom(c)
|
|
||||||
|| ((tgt != null) && !perm.isValid(tgt.getValidTgts(), c.getController(), c))) {
|
|| ((tgt != null) && !perm.isValid(tgt.getValidTgts(), c.getController(), c))) {
|
||||||
c.unEnchantEntity(perm);
|
c.unEnchantEntity(perm);
|
||||||
this.moveToGraveyard(c);
|
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()) {
|
if (spell.isAura() && spell.isSpell()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user