GameAction: remove outdated keyword "If CARDNAME would be put into a graveyard, exile it instead."

This commit is contained in:
Hanmac
2017-06-17 08:01:54 +00:00
parent 5e32ed291f
commit 39d22d1912

View File

@@ -580,16 +580,8 @@ public class GameAction {
return moveTo(stack, c, cause); return moveTo(stack, c, cause);
} }
public final Card moveToGraveyard(Card c, SpellAbility cause) { public final Card moveToGraveyard(final Card c, SpellAbility cause) {
final Player owner = c.getOwner(); final PlayerZone grave = c.getOwner().getZone(ZoneType.Graveyard);
final PlayerZone grave = owner.getZone(ZoneType.Graveyard);
final PlayerZone exile = owner.getZone(ZoneType.Exile);
if (c.hasKeyword("If CARDNAME would be put into a graveyard, exile it instead.")) {
c.removeAllExtrinsicKeyword("If CARDNAME would be put into a graveyard, exile it instead.");
return moveTo(exile, c, cause);
}
// must put card in OWNER's graveyard not controller's // must put card in OWNER's graveyard not controller's
return moveTo(grave, c, cause); return moveTo(grave, c, cause);
} }