mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +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()) {
|
if (sa.isCrew()) {
|
||||||
gameCard.becomesCrewed(sa);
|
gameCard.becomesCrewed(sa);
|
||||||
gameCard.updatePTforView();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
game.fireEvent(new GameEventCardStatsChanged(gameCard));
|
game.fireEvent(new GameEventCardStatsChanged(gameCard));
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
|
|||||||
source.addRemembered(c);
|
source.addRemembered(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final boolean wasCreature = c.isCreature();
|
||||||
|
|
||||||
// Alchemy "incorporate" cost
|
// Alchemy "incorporate" cost
|
||||||
ColorSet incColors = null;
|
ColorSet incColors = null;
|
||||||
if (sa.hasParam("Incorporate")) {
|
if (sa.hasParam("Incorporate")) {
|
||||||
@@ -141,6 +143,8 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
|
|||||||
c.addPerpetual(params);
|
c.addPerpetual(params);
|
||||||
}
|
}
|
||||||
c.addNewPT(power, toughness, timestamp, 0);
|
c.addNewPT(power, toughness, timestamp, 0);
|
||||||
|
} else if (!wasCreature && c.isCreature()) {
|
||||||
|
c.updatePTforView();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sa.hasParam("CantHaveKeyword")) {
|
if (sa.hasParam("CantHaveKeyword")) {
|
||||||
@@ -210,6 +214,7 @@ public abstract class AnimateEffectBase extends SpellAbilityEffect {
|
|||||||
c.removeChangedSVars(timestamp, 0);
|
c.removeChangedSVars(timestamp, 0);
|
||||||
c.removeChangedName(timestamp, 0);
|
c.removeChangedName(timestamp, 0);
|
||||||
c.updateStateForView();
|
c.updateStateForView();
|
||||||
|
c.updatePTforView();
|
||||||
|
|
||||||
game.fireEvent(new GameEventCardStatsChanged(c));
|
game.fireEvent(new GameEventCardStatsChanged(c));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user