forked from External/mage
62 lines
No EOL
1.6 KiB
Java
62 lines
No EOL
1.6 KiB
Java
|
|
package mage.game.permanent.token;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import mage.MageInt;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
|
|
/**
|
|
* @author Loki
|
|
*/
|
|
public final class SpiritToken extends TokenImpl {
|
|
|
|
static final private List<String> tokenImageSets = new ArrayList<>();
|
|
|
|
static {
|
|
tokenImageSets.addAll(Arrays.asList("CHK", "EMA", "C16"));
|
|
}
|
|
|
|
public SpiritToken() {
|
|
this(null, 0);
|
|
}
|
|
|
|
public SpiritToken(String setCode) {
|
|
this(setCode, 0);
|
|
}
|
|
|
|
public SpiritToken(String setCode, int tokenType) {
|
|
super("Spirit", "1/1 colorless Spirit creature token");
|
|
availableImageSetCodes = tokenImageSets;
|
|
setOriginalExpansionSetCode(setCode);
|
|
if (tokenType > 0) {
|
|
setTokenType(tokenType);
|
|
}
|
|
cardType.add(CardType.CREATURE);
|
|
subtype.add(SubType.SPIRIT);
|
|
power = new MageInt(1);
|
|
toughness = new MageInt(1);
|
|
}
|
|
|
|
@Override
|
|
public void setExpansionSetCodeForImage(String code) {
|
|
super.setExpansionSetCodeForImage(code);
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("EMA")) {
|
|
setTokenType(1);
|
|
}
|
|
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
|
|
setTokenType(1);
|
|
}
|
|
}
|
|
|
|
public SpiritToken(final SpiritToken token) {
|
|
super(token);
|
|
}
|
|
|
|
@Override
|
|
public SpiritToken copy() {
|
|
return new SpiritToken(this);
|
|
}
|
|
} |