refactor cards to use supertype enum

This commit is contained in:
ingmargoudt 2017-03-27 20:36:54 +02:00
parent 84559457d3
commit 0879298e92
6374 changed files with 17783 additions and 14013 deletions

View file

@ -2,11 +2,7 @@ package mage.abilities.effects.common;
import mage.abilities.Ability;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Layer;
import mage.constants.Outcome;
import mage.constants.SubLayer;
import mage.constants.*;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.Token;
@ -38,9 +34,9 @@ public class CopyTokenEffect extends ContinuousEffectImpl {
for (String type: token.getSubtype(game)) {
permanent.getSubtype(game).add(type);
}
permanent.getSupertype().clear();
for (String type: token.getSupertype()) {
permanent.getSupertype().add(type);
permanent.getSuperType().clear();
for (SuperType type: token.getSuperType()) {
permanent.getSuperType().add(type);
}
permanent.getAbilities().clear();
for (Ability ability: token.getAbilities()) {