* Lignify - Fixed that existing subtypes of the enchanted creature were not removed.

This commit is contained in:
LevelX2 2016-01-29 22:18:34 +01:00
parent 9aeaeae1c3
commit 8c9c4421cd
6 changed files with 99 additions and 24 deletions

View file

@ -47,7 +47,7 @@ public class BecomesCreatureAttachedEffect extends ContinuousEffectImpl {
public enum LoseType {
NONE, ALL, ALL_BUT_COLOR, ABILITIES, ABILITIES_AND_PT
NONE, ALL, ALL_BUT_COLOR, ABILITIES, ABILITIES_SUBTYPE_AND_PT
};
protected Token token;
@ -111,6 +111,7 @@ public class BecomesCreatureAttachedEffect extends ContinuousEffectImpl {
switch (loseType) {
case ALL:
case ALL_BUT_COLOR:
case ABILITIES_SUBTYPE_AND_PT:
permanent.getSubtype().retainAll(CardRepository.instance.getLandTypes());
break;
}
@ -143,7 +144,7 @@ public class BecomesCreatureAttachedEffect extends ContinuousEffectImpl {
case ALL:
case ALL_BUT_COLOR:
case ABILITIES:
case ABILITIES_AND_PT:
case ABILITIES_SUBTYPE_AND_PT:
permanent.removeAllAbilities(source.getSourceId(), game);
break;
}