Fixed Escape being castable from command zone (fixes #7632)

This commit is contained in:
Daniel Bomar 2021-02-28 14:20:44 -06:00
parent 6091c7eae3
commit f739eedc46
No known key found for this signature in database
GPG key ID: C86C8658F4023918

View file

@ -8,6 +8,7 @@ import mage.abilities.common.CastCommanderAbility;
import mage.abilities.common.PlayLandAsCommanderAbility; import mage.abilities.common.PlayLandAsCommanderAbility;
import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCost;
import mage.abilities.costs.mana.ManaCosts; import mage.abilities.costs.mana.ManaCosts;
import mage.abilities.keyword.EscapeAbility;
import mage.abilities.text.TextPart; import mage.abilities.text.TextPart;
import mage.cards.Card; import mage.cards.Card;
import mage.cards.FrameStyle; import mage.cards.FrameStyle;
@ -43,6 +44,10 @@ public class Commander implements CommandObject {
switch (spellAbility.getSpellAbilityType()) { switch (spellAbility.getSpellAbilityType()) {
case BASE: case BASE:
case BASE_ALTERNATE: case BASE_ALTERNATE:
// Escape only castable from graveyard
if (ability instanceof EscapeAbility) {
break;
}
case SPLIT: case SPLIT:
case SPLIT_FUSED: case SPLIT_FUSED:
case SPLIT_LEFT: case SPLIT_LEFT: