mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Adding target to spellAbility only if necessary
This commit is contained in:
@@ -34,7 +34,8 @@ public class CastSpellFromHandAction extends BasePlayerAction {
|
||||
SpellAbility spellAbility = cardToPlay.getSpells().get(0);
|
||||
spellAbility.setActivatingPlayer(player);
|
||||
spellAbility.setHostCard(game.getAction().moveToStack(cardToPlay, spellAbility));
|
||||
spellAbility.getTargets().add(player);
|
||||
if (spellAbility.usesTargeting())
|
||||
spellAbility.getTargets().add(player);
|
||||
game.getStack().freezeStack();
|
||||
game.getStack().addAndUnfreeze(spellAbility);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user