* Morph ability - Fixed that while a porphed creature not all other cardtypes (e.g. Artifact) or supertypes (e.g. Legendary) were removed.

This commit is contained in:
LevelX2 2014-09-16 23:26:03 +02:00
parent b883b34c5a
commit 4ce5519861

View file

@ -50,6 +50,7 @@ import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.abilities.effects.common.continious.SourceEffect;
import mage.cards.Card;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Layer;
import mage.constants.Outcome;
@ -291,6 +292,9 @@ class BecomesFaceDownCreatureEffect extends ContinuousEffectImpl implements Sour
switch (layer) {
case TypeChangingEffects_4:
permanent.setName("");
permanent.getSupertype().clear();
permanent.getCardType().clear();
permanent.getCardType().add(CardType.CREATURE);
permanent.getSubtype().clear();
permanent.getManaCost().clear();
break;