Fixed miss default token constructors

This commit is contained in:
Oleg Agafonov 2022-02-05 12:33:40 +04:00
parent 54a1efec63
commit 1fcdbe4b63
7 changed files with 29 additions and 0 deletions

View file

@ -11,6 +11,10 @@ import java.util.Arrays;
*/
public final class CustomIllusionToken extends TokenImpl {
public CustomIllusionToken() {
this(0);
}
public CustomIllusionToken(int xValue) {
super("Illusion", "X/X blue Illusion creature token");
cardType.add(CardType.CREATURE);

View file

@ -12,6 +12,10 @@ import mage.constants.SubType;
*/
public class DragonIllusionToken extends TokenImpl {
public DragonIllusionToken() {
this(0);
}
public DragonIllusionToken(int xValue) {
super("Dragon Illusion", "X/X red Dragon Illusion creature token with flying and haste");
cardType.add(CardType.CREATURE);

View file

@ -11,6 +11,10 @@ import java.util.Arrays;
*/
public final class GrakmawSkyclaveRavagerHydraToken extends TokenImpl {
public GrakmawSkyclaveRavagerHydraToken() {
this(0);
}
public GrakmawSkyclaveRavagerHydraToken(int xValue) {
super("Hydra", "X/X black and green Hydra creature token");
cardType.add(CardType.CREATURE);

View file

@ -11,6 +11,10 @@ import java.util.Arrays;
*/
public final class PhyrexianRebirthHorrorToken extends TokenImpl {
public PhyrexianRebirthHorrorToken() {
this(0, 0);
}
public PhyrexianRebirthHorrorToken(int power, int toughness) {
super("Phyrexian Horror", "X/X colorless Phyrexian Horror artifact creature token");
this.cardType.add(CardType.ARTIFACT);

View file

@ -3,8 +3,10 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.effects.common.continuous.SetPowerToughnessSourceEffect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.StaticHint;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.Duration;
@ -17,6 +19,10 @@ import java.util.Arrays;
*/
public final class SeizeTheStormElementalToken extends TokenImpl {
public SeizeTheStormElementalToken() {
this(StaticValue.get(0), new StaticHint(""));
}
public SeizeTheStormElementalToken(DynamicValue xValue, Hint hint) {
super("Elemental", "red Elemental creature token with trample and " +
"\"This creature's power and toughness are each equal to the number of instant " +

View file

@ -23,6 +23,9 @@ import mage.util.RandomUtil;
import java.util.*;
/**
* Each token must have default constructor without params (GUI require for card viewer)
*/
public abstract class TokenImpl extends MageObjectImpl implements Token {
protected String description;

View file

@ -9,6 +9,10 @@ import java.util.Arrays;
public class ZombieMenaceToken extends TokenImpl {
public ZombieMenaceToken() {
this(0);
}
public ZombieMenaceToken(int xValue) {
super("Zombie", "X/X blue and black Zombie creature token with menace");
cardType.add(CardType.CREATURE);