Token refactor

This commit is contained in:
spjspj 2017-05-08 21:53:01 +10:00
parent a897b374a0
commit bec0964726
4 changed files with 7 additions and 2 deletions

View file

@ -347,6 +347,8 @@ public class MageBook extends JComponent {
Constructor<?> cons = c.getConstructor();
Object newToken = cons.newInstance();
if (newToken != null && newToken instanceof mage.game.permanent.token.Token) {
((Token) newToken).setExpansionSetCodeForImage(set);
((Token) newToken).setOriginalExpansionSetCode(set);
tokens.add((Token) newToken);
}
} catch (ClassNotFoundException ex) {

View file

@ -37,7 +37,7 @@ import mage.MageInt;
public class DinOfTheFireherdToken extends Token {
public DinOfTheFireherdToken() {
super("", "5/5 black and red Elemental creature");
super("Elemental", "5/5 black and red Elemental creature");
cardType.add(CardType.CREATURE);
subtype.add("Elemental");
color.setBlack(true);

View file

@ -38,7 +38,7 @@ import mage.constants.SuperType;
public class TuktukTheReturnedToken extends Token {
public TuktukTheReturnedToken() {
this("ZEN");
this("ROE");
}
public TuktukTheReturnedToken(String setCode) {

View file

@ -37,6 +37,9 @@ import mage.abilities.keyword.DeathtouchAbility;
*/
public class Wurm1Token extends Token {
public Wurm1Token() {
this("MBS");
}
public Wurm1Token(String setCode) {
super("Wurm", "3/3 colorless Wurm artifact creature token with deathtouch");
setOriginalExpansionSetCode(setCode);