mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Bestow - while used as Aura, other subtypes are removed. Theros gods lose subtype god while beeing not a creature.
This commit is contained in:
parent
15374134ac
commit
f77576b62c
3 changed files with 12 additions and 10 deletions
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue