Set some token version types. [C16] Added token info. Implemented Migratory Route.

This commit is contained in:
fireshoes 2016-10-31 23:09:42 -05:00
parent 135819c6ef
commit ac3203b63c
15 changed files with 156 additions and 20 deletions

View file

@ -29,9 +29,9 @@
package mage.game.permanent.token;
import java.util.Arrays;
import mage.constants.CardType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
/**
*
@ -47,7 +47,7 @@ public class BirdToken extends Token {
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());
availableImageSetCodes.addAll(Arrays.asList("BNG", "RTR", "ZEN"));
availableImageSetCodes.addAll(Arrays.asList("BNG", "RTR", "ZEN", "C16"));
}
public BirdToken(final BirdToken token) {
@ -62,7 +62,10 @@ public class BirdToken extends Token {
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode().equals("BNG")) {
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("BNG")) {
this.setTokenType(1);
}
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
this.setTokenType(1);
}
}