mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Fix Phantom Train not updating PT (#8332)
* Fix Phantom Train not updating PT
This commit is contained in:
@@ -202,7 +202,6 @@ public class AnimateEffect extends AnimateEffectBase {
|
||||
|
||||
if (sa.isCrew()) {
|
||||
gameCard.becomesCrewed(sa);
|
||||
gameCard.updatePTforView();
|
||||
}
|
||||
|
||||
game.fireEvent(new GameEventCardStatsChanged(gameCard));
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user