Fixed a recently committed bug that added cardType and subtype of tokens cumulative on each permanent reset.

This commit is contained in:
LevelX2 2014-02-14 15:11:36 +01:00
parent ce8616052b
commit 2eebdb3b5b

View file

@ -75,12 +75,12 @@ public class PermanentToken extends PermanentImpl<PermanentToken> {
for (ManaCost cost: token.getManaCost()) {
this.getManaCost().add(cost.copy());
}
this.cardType.addAll(token.getCardType());
this.cardType = token.getCardType();
this.color = token.getColor().copy();
this.power.initValue(token.getPower().getValue());
this.toughness.initValue(token.getToughness().getValue());
this.supertype.addAll(token.getSupertype());
this.subtype.addAll(token.getSubtype());
this.supertype = token.getSupertype();
this.subtype = token.getSubtype();
}
@Override