mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Reset the activations so that flickering a planeswalker can activate the loyalty ability again
This commit is contained in:
@@ -460,6 +460,10 @@ public class GameAction {
|
|||||||
unattachCardLeavingBattlefield(copied);
|
unattachCardLeavingBattlefield(copied);
|
||||||
// Remove all changed keywords
|
// Remove all changed keywords
|
||||||
copied.removeAllChangedText(game.getNextTimestamp());
|
copied.removeAllChangedText(game.getNextTimestamp());
|
||||||
|
// reset activations
|
||||||
|
for (SpellAbility ab : copied.getSpellAbilities()) {
|
||||||
|
ab.getRestrictions().resetTurnActivations();
|
||||||
|
}
|
||||||
} else if (toBattlefield) {
|
} else if (toBattlefield) {
|
||||||
// reset timestamp in changezone effects so they have same timestamp if ETB simutaneously
|
// reset timestamp in changezone effects so they have same timestamp if ETB simutaneously
|
||||||
copied.setTimestamp(game.getNextTimestamp());
|
copied.setTimestamp(game.getNextTimestamp());
|
||||||
|
|||||||
Reference in New Issue
Block a user