GameAction: hotfix for CastSA

This commit is contained in:
Hans Mackowiak
2020-04-28 17:09:35 +00:00
committed by Michael Kamensky
parent 4e6addcf84
commit c7f0def063

View File

@@ -548,12 +548,11 @@ public class GameAction {
c.setCastSA(null); c.setCastSA(null);
} else if (zoneTo.is(ZoneType.Stack)) { } else if (zoneTo.is(ZoneType.Stack)) {
c.setCastFrom(zoneFrom.getZoneType()); c.setCastFrom(zoneFrom.getZoneType());
if (cause != null && cause.isSpell() && c.equals(cause.getHostCard()) && !c.isCopiedSpell()) { if (cause != null && cause.isSpell() && c.equals(cause.getHostCard()) && !c.isCopiedSpell()) {
cause.setLastStateBattlefield(game.getLastStateBattlefield()); cause.setLastStateBattlefield(game.getLastStateBattlefield());
cause.setLastStateGraveyard(game.getLastStateGraveyard()); cause.setLastStateGraveyard(game.getLastStateGraveyard());
// need to copy the cast SA so the last state isn't cleared c.setCastSA(cause);
c.setCastSA(cause.copy(c, cause.getActivatingPlayer(), true));
} else { } else {
c.setCastSA(null); c.setCastSA(null);
} }