mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Token refactor
This commit is contained in:
parent
a897b374a0
commit
bec0964726
4 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -38,7 +38,7 @@ import mage.constants.SuperType;
|
|||
public class TuktukTheReturnedToken extends Token {
|
||||
|
||||
public TuktukTheReturnedToken() {
|
||||
this("ZEN");
|
||||
this("ROE");
|
||||
}
|
||||
|
||||
public TuktukTheReturnedToken(String setCode) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue