mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Commander - Fixed that commander could not be cast from command zone by using flash.
This commit is contained in:
parent
ada0fb15db
commit
ab3386ac25
1 changed files with 2 additions and 2 deletions
|
@ -34,12 +34,12 @@ import mage.ObjectColor;
|
|||
import mage.abilities.Abilities;
|
||||
import mage.abilities.AbilitiesImpl;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.common.CastCommanderAbility;
|
||||
import mage.abilities.costs.mana.ManaCost;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
|
@ -58,7 +58,7 @@ public class Commander implements CommandObject{
|
|||
this.card = card;
|
||||
abilites.add(new CastCommanderAbility(card));
|
||||
for (Ability ability : card.getAbilities()) {
|
||||
if (ability.getZone().match(Zone.COMMAND)) {
|
||||
if (!(ability instanceof SpellAbility)) {
|
||||
Ability newAbility = ability.copy();
|
||||
newAbility.setRuleVisible(false);
|
||||
abilites.add(newAbility);
|
||||
|
|
Loading…
Reference in a new issue