forked from External/mage
* Added support for and assigned IMA token images * Added support for and assigned CM2 token images * Fixed M19 DragonEggDragonToken not displaying in game
56 lines
1.6 KiB
Java
56 lines
1.6 KiB
Java
package mage.game.permanent.token;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.keyword.DeathtouchAbility;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* @author spjspj
|
|
*/
|
|
public final class WurmWithDeathtouchToken extends TokenImpl {
|
|
|
|
public WurmWithDeathtouchToken() {
|
|
super("Phyrexian Wurm Token", "3/3 colorless Phyrexian Wurm artifact creature token with deathtouch");
|
|
cardType.add(CardType.ARTIFACT);
|
|
cardType.add(CardType.CREATURE);
|
|
subtype.add(SubType.PHYREXIAN);
|
|
subtype.add(SubType.WURM);
|
|
power = new MageInt(3);
|
|
toughness = new MageInt(3);
|
|
this.addAbility(DeathtouchAbility.getInstance());
|
|
|
|
availableImageSetCodes = Arrays.asList("C14", "SOM", "2XM", "CM2");
|
|
}
|
|
|
|
@Override
|
|
public void setExpansionSetCodeForImage(String code) {
|
|
super.setExpansionSetCodeForImage(code);
|
|
|
|
if (getOriginalExpansionSetCode().equals("C14")) {
|
|
this.setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode().equals("SOM")) {
|
|
this.setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode().equals("CM2")) {
|
|
this.setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode().equals("2XM")) {
|
|
this.setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode().equals("CM2")) {
|
|
this.setTokenType(1);
|
|
}
|
|
}
|
|
|
|
public WurmWithDeathtouchToken(final WurmWithDeathtouchToken token) {
|
|
super(token);
|
|
}
|
|
|
|
public WurmWithDeathtouchToken copy() {
|
|
return new WurmWithDeathtouchToken(this);
|
|
}
|
|
}
|