mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
return false when no choice made for archon ability
This commit is contained in:
parent
f64549213f
commit
84daa0f820
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ class ArchonOfValorsReachReplacementEffect extends ContinuousRuleModifyingEffect
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
|
||||
if ((String) game.getState().getValue(source.getSourceId().toString() + "_cardtype") == null){
|
||||
return false;
|
||||
}
|
||||
|
||||
CardType cardType = ArchonOfValorsReachChoice.getType((String) game.getState().getValue(source.getSourceId().toString() + "_cardtype"));
|
||||
// spell is not on the stack yet, so we have to check the card
|
||||
Card card = game.getCard(event.getSourceId());
|
||||
|
|
Loading…
Reference in a new issue