mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
* Added support for and assigned UMA token images * Added Scryfall token download links for MMA * Added Scryfall token download links for SHM * Fixed last commit and Oona token names * Added support for and assigned NEO token images * Added support for and assigned NEC token images * Added support for and assigned SLD token images * Added support for and assigned 2XM token images * Fixed Tuktuk and some naming inconsistencies * Fixed WalkerOfTheGroveToken's available image set codes * Fixed WalkerOfTheGroveToken's available image set codes * Fixed tokens with same names not displaying correctly
55 lines
1.7 KiB
Java
55 lines
1.7 KiB
Java
package mage.game.permanent.token;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.keyword.FlyingAbility;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
|
|
import java.util.Arrays;
|
|
|
|
/**
|
|
* @author nantuko
|
|
*/
|
|
public final class SpiritWhiteToken extends TokenImpl {
|
|
|
|
public SpiritWhiteToken() {
|
|
super("Spirit Token", "1/1 white Spirit creature token with flying");
|
|
cardType.add(CardType.CREATURE);
|
|
subtype.add(SubType.SPIRIT);
|
|
color.setWhite(true);
|
|
power = new MageInt(1);
|
|
toughness = new MageInt(1);
|
|
|
|
addAbility(FlyingAbility.getInstance());
|
|
|
|
availableImageSetCodes = Arrays.asList("AVR", "C14", "CNS", "DDC", "DDK", "FRF", "ISD", "KTK", "M15", "MM2", "SHM",
|
|
"SOI", "EMA", "C16", "MM3", "CMA", "E01", "ANA", "GPT", "RAV", "EMN", "RNA", "M20", "C20", "CMR", "KHM",
|
|
"MID", "VOW", "UMA");
|
|
}
|
|
|
|
@Override
|
|
public void setExpansionSetCodeForImage(String code) {
|
|
super.setExpansionSetCodeForImage(code);
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("AVR")) {
|
|
setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
|
setTokenType(2);
|
|
}
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("EMA")) {
|
|
setTokenType(2);
|
|
}
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("UMA")) {
|
|
setTokenType(1);
|
|
}
|
|
}
|
|
|
|
public SpiritWhiteToken(final SpiritWhiteToken token) {
|
|
super(token);
|
|
}
|
|
|
|
@Override
|
|
public SpiritWhiteToken copy() {
|
|
return new SpiritWhiteToken(this);
|
|
}
|
|
}
|