Fix Phantom Train not updating PT (#8332)

* Fix Phantom Train not updating PT
This commit is contained in:
Hans Mackowiak
2025-08-08 12:52:29 +02:00
committed by GitHub
parent 000fa14c17
commit 00332ff3fe
2 changed files with 5 additions and 1 deletions

View File

@@ -202,7 +202,6 @@ public class AnimateEffect extends AnimateEffectBase {
if (sa.isCrew()) {
gameCard.becomesCrewed(sa);
gameCard.updatePTforView();
}
game.fireEvent(new GameEventCardStatsChanged(gameCard));

View File

@@ -82,6 +82,8 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
source.addRemembered(c);
}
final boolean wasCreature = c.isCreature();
// Alchemy "incorporate" cost
ColorSet incColors = null;
if (sa.hasParam("Incorporate")) {
@@ -141,6 +143,8 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
c.addPerpetual(params);
}
c.addNewPT(power, toughness, timestamp, 0);
} else if (!wasCreature && c.isCreature()) {
c.updatePTforView();
}
if (sa.hasParam("CantHaveKeyword")) {
@@ -210,6 +214,7 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
c.removeChangedSVars(timestamp, 0);
c.removeChangedName(timestamp, 0);
c.updateStateForView();
c.updatePTforView();
game.fireEvent(new GameEventCardStatsChanged(c));
}