mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'patch' into 'master'
- Reset the activations so that flickering a planeswalker can activate the loyalty ability again See merge request core-developers/forge!322
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