- Better fix for the AI cheating with X values on replay (fixing the cause and not the effect).

This commit is contained in:
Agetian
2017-06-27 03:09:29 +00:00
parent 83d34ee456
commit 6a43403d6c
2 changed files with 9 additions and 8 deletions

View File

@@ -184,9 +184,15 @@ public class GameAction {
zoneChangedEarly = true;
}
// Clean up the temporary Dash SVar when the Dashed card leaves the battlefield
if (fromBattlefield && c.getSVar("EndOfTurnLeavePlay").equals("Dash")) {
c.removeSVar("EndOfTurnLeavePlay");
if (fromBattlefield) {
// Clean up the temporary Dash SVar when the Dashed card leaves the battlefield
if (c.getSVar("EndOfTurnLeavePlay").equals("Dash")) {
c.removeSVar("EndOfTurnLeavePlay");
}
// Clean up the temporary X announcement variable used by the AI
if (!zoneTo.is(ZoneType.Stack) && c.hasSVar("PayX")) {
c.removeSVar("PayX");
}
}
if (fromBattlefield && !toBattlefield) {