foul-magics/Mage/src/main/java/mage/game/permanent/token/StitcherGeralfZombieToken.java
Evan Kranzler 9e0ea945ca
Refactoring token names to reflect new rule (ready for review) (#8446)
* updated Riptide Replicator and Volrath's Laboratory

* refactored token names

* some test fixes

* more test fixes

* even more test fixes

* the final test fixes

* fixed a few missed tokens

* merge fix

* fixed a test failure

* fixed test failure

* updated ignored verify test

* fixed token images not appearing

* updated tests
2022-03-14 22:37:21 -04:00

53 lines
1.3 KiB
Java

package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.Arrays;
/**
* @author spjspj
*/
public final class StitcherGeralfZombieToken extends TokenImpl {
public StitcherGeralfZombieToken() {
this(1);
}
public StitcherGeralfZombieToken(int xValue) {
super("Zombie Token", "X/X blue Zombie creature token");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add(SubType.ZOMBIE);
power = new MageInt(xValue);
toughness = new MageInt(xValue);
availableImageSetCodes = Arrays.asList("C14", "MIC", "VOW");
}
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode().equals("C14")) {
this.setTokenType(2);
}
if (getOriginalExpansionSetCode().equals("MIC")) {
this.setTokenType(2);
}
if (getOriginalExpansionSetCode().equals("VOW")) {
this.setTokenType(2);
}
}
public StitcherGeralfZombieToken(final StitcherGeralfZombieToken token) {
super(token);
}
public StitcherGeralfZombieToken copy() {
return new StitcherGeralfZombieToken(this);
}
}