foul-magics/Mage/src/main/java/mage/game/permanent/token/WurmWithDeathtouchToken.java
PurpleCrowbar a8309f38f7
Token images for a couple of sets (#9047)
* Added support for and assigned IMA token images

* Added support for and assigned CM2 token images

* Fixed M19 DragonEggDragonToken not displaying in game
2022-06-02 00:55:17 +04:00

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);
}
}