mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Card: move reseting xmana paid to clearTemporaryVars
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user