forked from External/mage
* Images: added Commander 2021 tokens;
This commit is contained in:
parent
03b012bc1e
commit
6a3f2ff420
49 changed files with 362 additions and 303 deletions
|
|
@ -0,0 +1,48 @@
|
|||
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 spjspj
|
||||
*/
|
||||
public final class DemonFlyingToken extends TokenImpl {
|
||||
|
||||
public DemonFlyingToken() {
|
||||
this(1);
|
||||
}
|
||||
|
||||
public DemonFlyingToken(int xValue) {
|
||||
super("Demon", "X/X black Demon creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add(SubType.DEMON);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("C14", "C21");
|
||||
}
|
||||
|
||||
public DemonFlyingToken(final DemonFlyingToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public DemonFlyingToken copy() {
|
||||
return new DemonFlyingToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C14")) {
|
||||
setTokenType(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue