mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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:
@@ -156,7 +156,7 @@ public class GameAction {
|
|||||||
repl.setHostCard(copied);
|
repl.setHostCard(copied);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!suppress) {
|
if (!suppress) {
|
||||||
HashMap<String, Object> repParams = new HashMap<String, Object>();
|
HashMap<String, Object> repParams = new HashMap<String, Object>();
|
||||||
repParams.put("Event", "Moved");
|
repParams.put("Event", "Moved");
|
||||||
@@ -296,6 +296,16 @@ public class GameAction {
|
|||||||
copied.removeHiddenExtrinsicKeyword(s);
|
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;
|
return copied;
|
||||||
|
|||||||
Reference in New Issue
Block a user