mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
GameAction: hotfix for CastSA
This commit is contained in:
committed by
Michael Kamensky
parent
4e6addcf84
commit
c7f0def063
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user