mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
~ fix lastState update for Counters and Undying
This commit is contained in:
@@ -947,6 +947,7 @@ public class GameAction {
|
||||
// do this multiple times, sometimes creatures/permanents will survive when they shouldn't
|
||||
boolean orderedDesCreats = false;
|
||||
boolean orderedNoRegCreats = false;
|
||||
CardCollection cardsToUpdateLKI = new CardCollection();
|
||||
for (int q = 0; q < 9; q++) {
|
||||
checkStaticAbilities(false, affectedCards, CardCollection.EMPTY);
|
||||
boolean checkAgain = false;
|
||||
@@ -1020,7 +1021,7 @@ public class GameAction {
|
||||
checkAgain = true;
|
||||
}
|
||||
if (checkAgain) {
|
||||
game.updateLastStateForCard(c);
|
||||
cardsToUpdateLKI.add(c);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1098,6 +1099,10 @@ public class GameAction {
|
||||
// this point.
|
||||
checkStaticAbilities(false, affectedCards, CardCollection.EMPTY);
|
||||
|
||||
for (final Card c : cardsToUpdateLKI) {
|
||||
game.updateLastStateForCard(c);
|
||||
}
|
||||
|
||||
if (!refreeze) {
|
||||
game.getStack().unfreezeStack();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user