Card: move reseting xmana paid to clearTemporaryVars

This commit is contained in:
Hans Mackowiak
2020-03-06 07:29:37 +01:00
parent 32b56018a6
commit d5b578b306
2 changed files with 2 additions and 5 deletions

View File

@@ -557,11 +557,6 @@ public class GameAction {
} else if (!(zoneTo.is(ZoneType.Battlefield) && zoneFrom.is(ZoneType.Stack))) {
c.setCastFrom(null);
c.setCastSA(null);
// TODO check why these are not reset
c.setXManaCostPaid(0);
c.setSunburstValue(0);
c.setXManaCostPaidByColor(null);
}
if (c.isAura() && zoneTo.is(ZoneType.Battlefield) && ((zoneFrom == null) || !zoneFrom.is(ZoneType.Stack))

View File

@@ -6353,6 +6353,8 @@ public class Card extends GameEntity implements Comparable<Card> {
removeSVar("PayX"); // Temporary AI X announcement variable
removeSVar("IsCastFromPlayEffect"); // Temporary SVar indicating that the spell is cast indirectly via AF Play
setSunburstValue(0); // Sunburst
setXManaCostPaid(0);
setXManaCostPaidByColor(null);
}
public final int getFinalChapterNr() {