forked from External/mage
huge rework on subtypes (#3668)
* huge rework on subtypes * update for coat of arms * fix test
This commit is contained in:
parent
81fb4b5d92
commit
09f0c9ad97
185 changed files with 1068 additions and 906 deletions
|
|
@ -32,6 +32,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.keyword.MorphAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
import mage.game.permanent.PermanentToken;
|
||||
|
|
@ -96,7 +97,7 @@ public class CopyTokenFunction implements Function<Token, Card> {
|
|||
target.addCardType(type);
|
||||
}
|
||||
target.getSubtype(null).clear();
|
||||
for (String type : sourceObj.getSubtype(null)) {
|
||||
for (SubType type : sourceObj.getSubtype(null)) {
|
||||
target.getSubtype(null).add(type);
|
||||
}
|
||||
target.getSuperType().clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue