forked from External/mage
Tokens improves:
* [M21] added tokens; * [M21] added tokens download support; * Fixed wrong images for some tokens (Angel, Beast, Bird, Cat, etc);
This commit is contained in:
parent
4dc99fbb58
commit
99ceeb5076
26 changed files with 298 additions and 206 deletions
|
|
@ -1,34 +1,27 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.FirstStrikeAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class HuntedDragonKnightToken extends TokenImpl {
|
||||
|
||||
static final private List<String> tokenImageSets = new ArrayList<>();
|
||||
|
||||
static {
|
||||
tokenImageSets.addAll(Arrays.asList("ORI", "RTR", "C15"));
|
||||
}
|
||||
|
||||
public HuntedDragonKnightToken() {
|
||||
super("Knight", "2/2 white Knight creature tokens with first strike");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
|
||||
subtype.add(SubType.KNIGHT);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
this.addAbility(FirstStrikeAbility.getInstance());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("ORI", "RTR", "C15");
|
||||
}
|
||||
|
||||
public HuntedDragonKnightToken(final HuntedDragonKnightToken token) {
|
||||
|
|
@ -38,4 +31,13 @@ public final class HuntedDragonKnightToken extends TokenImpl {
|
|||
public HuntedDragonKnightToken copy() {
|
||||
return new HuntedDragonKnightToken(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setExpansionSetCodeForImage(String code) {
|
||||
super.setExpansionSetCodeForImage(code);
|
||||
|
||||
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C15")) {
|
||||
setTokenType(2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue