Make Morph a SpellAbility (part 1)

This commit is contained in:
Steven Knipe 2023-09-18 02:48:30 -07:00
parent 9b634d44c6
commit 3e4d439d18
4 changed files with 38 additions and 48 deletions

View file

@ -1,6 +1,7 @@
package mage.constants;
import mage.abilities.keyword.BestowAbility;
import mage.abilities.keyword.MorphAbility;
import mage.cards.Card;
import mage.game.Game;
@ -12,6 +13,7 @@ public enum SpellAbilityCastMode {
MADNESS("Madness"),
FLASHBACK("Flashback"),
BESTOW("Bestow"),
MORPH("Morph"),
TRANSFORMED("Transformed", true),
DISTURB("Disturb", true),
MORE_THAN_MEETS_THE_EYE("More than Meets the Eye", true);
@ -49,6 +51,8 @@ public enum SpellAbilityCastMode {
if (tmp != null) {
cardCopy = tmp.copy();
}
if (this.equals(MORPH)) {
MorphAbility.setObjectToFaceDownCreature(cardCopy, game);
}
return cardCopy;
}