mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
HumanPlaySpellAbility: set CastSA and LastStateBattlefield when casting a spell
This commit is contained in:
@@ -98,6 +98,8 @@ public class HumanPlaySpellAbility {
|
|||||||
if (ability instanceof Spell && !((Spell) ability).isCastFaceDown() && fromState == CardStateName.FaceDown) {
|
if (ability instanceof Spell && !((Spell) ability).isCastFaceDown() && fromState == CardStateName.FaceDown) {
|
||||||
c.turnFaceUp();
|
c.turnFaceUp();
|
||||||
}
|
}
|
||||||
|
c.setCastSA(ability);
|
||||||
|
ability.setLastStateBattlefield(game.getLastStateBattlefield());
|
||||||
ability.setHostCard(game.getAction().moveToStack(c));
|
ability.setHostCard(game.getAction().moveToStack(c));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user