mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Lignify - Fixed that existing subtypes of the enchanted creature were not removed.
This commit is contained in:
parent
9aeaeae1c3
commit
8c9c4421cd
6 changed files with 99 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue