mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- fix for sorceries and instants with pumped "May be Played" keyword not clearing these keywords when they're cast.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user