forked from External/mage
* 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
47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package mage.game.permanent.token;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.keyword.MenaceAbility;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.Arrays;
|
|
|
|
public class ZombieMenaceToken extends TokenImpl {
|
|
|
|
public ZombieMenaceToken() {
|
|
this(0);
|
|
}
|
|
|
|
public ZombieMenaceToken(int xValue) {
|
|
super("Zombie Token", "X/X blue and black Zombie creature token with menace");
|
|
cardType.add(CardType.CREATURE);
|
|
color.setBlue(true);
|
|
color.setBlack(true);
|
|
subtype.add(SubType.ZOMBIE);
|
|
power = new MageInt(xValue);
|
|
toughness = new MageInt(xValue);
|
|
|
|
this.addAbility(new MenaceAbility());
|
|
|
|
availableImageSetCodes.addAll(Arrays.asList("MID"));
|
|
}
|
|
|
|
@Override
|
|
public void setExpansionSetCodeForImage(String code) {
|
|
super.setExpansionSetCodeForImage(code);
|
|
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("MID")) {
|
|
this.setTokenType(2);
|
|
}
|
|
}
|
|
|
|
private ZombieMenaceToken(final ZombieMenaceToken token) {
|
|
super(token);
|
|
}
|
|
|
|
@Override
|
|
public ZombieMenaceToken copy() {
|
|
return new ZombieMenaceToken(this);
|
|
}
|
|
}
|