* Bestow - while used as Aura, other subtypes are removed. Theros gods lose subtype god while beeing not a creature.

This commit is contained in:
LevelX2 2013-10-07 14:16:37 +02:00
parent 15374134ac
commit f77576b62c
3 changed files with 12 additions and 10 deletions

View file

@ -48,7 +48,6 @@ import mage.constants.ManaType;
import mage.constants.Rarity;
import mage.constants.TargetController;
import mage.constants.Zone;
import mage.game.permanent.token.Token;
import mage.target.common.TargetControlledCreaturePermanent;
/**

View file

@ -78,6 +78,7 @@ public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl<LoseCreat
case TypeChangingEffects_4:
if (sublayer == SubLayer.NA) {
permanent.getCardType().remove(CardType.CREATURE);
permanent.getSubtype().clear();
}
break;
}

View file

@ -167,16 +167,18 @@ class BestowTypeChangingEffect extends ContinuousEffectImpl<BestowTypeChangingEf
if (permanent != null) {
switch (layer) {
case TypeChangingEffects_4:
if (permanent.getAttachedTo() == null) {
if (permanent.getSubtype().contains("Aura")) {
permanent.getSubtype().remove("Aura");
}
} else {
if (sublayer == SubLayer.NA) {
if (sublayer == SubLayer.NA) {
if (permanent.getAttachedTo() == null) {
if (permanent.getSubtype().contains("Aura")) {
permanent.getSubtype().remove("Aura");
}
} else {
permanent.getCardType().remove(CardType.CREATURE);
}
if (!permanent.getSubtype().contains("Aura")) {
permanent.getSubtype().add("Aura");
permanent.getSubtype().clear();
if (!permanent.getSubtype().contains("Aura")) {
permanent.getSubtype().add("Aura");
}
}
}
break;