- fix for sorceries and instants with pumped "May be Played" keyword not clearing these keywords when they're cast.

This commit is contained in:
moomarc
2012-09-11 14:37:13 +00:00
parent 887262f22b
commit 016953c2a0

View File

@@ -156,7 +156,7 @@ public class GameAction {
repl.setHostCard(copied);
}
}
if (!suppress) {
HashMap<String, Object> repParams = new HashMap<String, Object>();
repParams.put("Event", "Moved");
@@ -296,6 +296,16 @@ public class GameAction {
copied.removeHiddenExtrinsicKeyword(s);
}
}
} else if (zoneTo.is(ZoneType.Graveyard)) {
copied.setTimestamp(AllZone.getNextTimestamp());
for (String s : copied.getKeyword()) {
if (s.startsWith("May be played") || s.startsWith("You may look at this card.")
|| s.startsWith("May be played by your opponent")
|| s.startsWith("Your opponent may look at this card.")) {
copied.removeAllExtrinsicKeyword(s);
copied.removeHiddenExtrinsicKeyword(s);
}
}
}
return copied;