Refactored subtypes to enum

This commit is contained in:
Evan Kranzler 2017-09-07 21:18:19 -04:00
parent e21f6aacde
commit 245bf2f2df
9131 changed files with 52127 additions and 44576 deletions

View file

@ -257,6 +257,7 @@ public enum SubType {
QUARREN("Quarren", SubTypeSet.CreatureType, true), // Star Wars
// R
RABBIT("Rabbit", SubTypeSet.CreatureType),
RAIDER("Raider", SubTypeSet.CreatureType, true), // Star Wars
RAT("Rat", SubTypeSet.CreatureType),
REBEL("Rebel", SubTypeSet.CreatureType),
REFLECTION("Reflection", SubTypeSet.CreatureType),
@ -317,6 +318,7 @@ public enum SubType {
TRISKELAVITE("Triskelavite", SubTypeSet.CreatureType),
TROLL("Troll", SubTypeSet.CreatureType),
TURTLE("Turtle", SubTypeSet.CreatureType),
TUSKEN("Tusken", SubTypeSet.CreatureType, true), // Star Wars
TROOPER("Trooper", SubTypeSet.CreatureType, true), // Star Wars
TWILEK("Twi'lek", SubTypeSet.CreatureType, true), // Star Wars

View file

@ -29,6 +29,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
@ -45,7 +46,7 @@ public class ATATToken extends Token {
cardType.add(CardType.ARTIFACT);
color.setWhite(true);
addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new TrooperToken(), 2)));
subtype.add("AT-AT");
subtype.add(SubType.ATAT);
}
}

View file

@ -29,6 +29,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -42,7 +43,7 @@ public class AbhorrentOverlordHarpyToken extends Token {
super("Harpy", "1/1 black Harpy creature tokens with flying");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Harpy");
subtype.add(SubType.HARPY);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -30,6 +30,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -44,7 +45,7 @@ public class AerieWorshippersBirdToken extends Token {
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Bird");
subtype.add(SubType.BIRD);
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());

View file

@ -29,6 +29,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility;
@ -43,7 +44,7 @@ public class AkoumStonewakerElementalToken extends Token {
super("Elemental", "3/1 red Elemental creature token with trample and haste");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(3);
toughness = new MageInt(1);
this.addAbility(TrampleAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
@ -42,7 +43,7 @@ public class AkroanSoldierToken extends Token {
setTokenType(3);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Soldier");
subtype.add(SubType.SOLDIER);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(HasteAbility.getInstance());

View file

@ -6,6 +6,7 @@ import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
public class AngelToken extends Token {
@ -26,7 +27,7 @@ public class AngelToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Angel");
subtype.add(SubType.ANGEL);
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class AnotherSpiritToken extends Token {
super("Spirit", "3/3 white Spirit creature token with flying");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Spirit");
subtype.add(SubType.SPIRIT);
power = new MageInt(3);
toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance());

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -43,7 +44,7 @@ public class AnthousaWarriorToken extends Token {
public AnthousaWarriorToken() {
super("", "2/2 Warrior creatures");
cardType.add(CardType.CREATURE);
subtype.add("Warrior");
subtype.add(SubType.WARRIOR);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class ApeToken extends Token {
super("Ape", "2/2 green Ape creature token");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Ape");
subtype.add(SubType.APE);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -44,7 +45,7 @@ public class ArchitectOfTheUntamedBeastToken extends Token {
super("Beast", "6/6 colorless Beast artifact creature token");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(6);
toughness = new MageInt(6);
}

View file

@ -29,6 +29,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.effects.common.LoseGameTargetPlayerEffect;
@ -43,7 +44,7 @@ public class AssassinToken extends Token {
super("Assassin", "1/1 black Assassin creature tokens with \"Whenever this creature deals combat damage to a player, that player loses the game.\"");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Assassin");
subtype.add(SubType.ASSASSIN);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new LoseGameTargetPlayerEffect(), false, true));

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class AssemblyWorkerToken extends Token {
super("Assembly-Worker", "2/2 Assembly-Worker artifact creature");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
this.subtype.add("Assembly-Worker");
this.subtype.add(SubType.ASSEMBLY_WORKER);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.abilities.Ability;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.constants.Duration;
@ -50,7 +51,7 @@ public class AvatarToken extends Token {
public AvatarToken() {
super("Avatar", "white Avatar creature token with \"This creature's power and toughness are each equal to your life total.\"");
cardType.add(CardType.CREATURE);
subtype.add("Avatar");
subtype.add(SubType.AVATAR);
color.setWhite(true);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AvatarTokenEffect()));
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
@ -44,7 +45,7 @@ public class BalduvianToken extends Token {
color.setRed(true);
power = new MageInt(3);
toughness = new MageInt(1);
subtype.add("Graveborn");
subtype.add(SubType.GRAVEBORN);
addAbility(HasteAbility.getInstance());
}
}

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -48,7 +49,7 @@ public class BaruFistOfKrosaToken extends Token {
super("Wurm", "X/X green Wurm creature token, where X is the number of lands you control");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Wurm");
subtype.add(SubType.WURM);
power = new MageInt(xValue);
toughness = new MageInt(xValue);
}

View file

@ -3,6 +3,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
public class BatToken extends Token {
@ -10,7 +11,7 @@ public class BatToken extends Token {
super("Bat", "1/1 black Bat creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Bat");
subtype.add(SubType.BAT);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -41,7 +42,7 @@ public class BearToken extends Token {
super("Bear", "2/2 green Bear creature token");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Bear");
subtype.add(SubType.BEAR);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class BearsCompanionBearToken extends Token {
setOriginalExpansionSetCode("KTK");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Bear");
subtype.add(SubType.BEAR);
power = new MageInt(4);
toughness = new MageInt(4);
}

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -59,7 +60,7 @@ public class BeastToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(3);
toughness = new MageInt(3);

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -59,7 +60,7 @@ public class BeastToken2 extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(4);
toughness = new MageInt(4);
}

View file

@ -29,6 +29,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -49,7 +50,7 @@ public class BeastToken3 extends Token {
setOriginalExpansionSetCode("AKH");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(4);
toughness = new MageInt(2);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -43,7 +44,7 @@ public class BeckonApparitionToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
color.setBlack(true);
subtype.add("Spirit");
subtype.add(SubType.SPIRIT);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -40,7 +41,7 @@ public class BirdSoldierToken extends Token {
public BirdSoldierToken() {
super("Bird Soldier", "1/1 white Bird Soldier creature with flying");
cardType.add(CardType.CREATURE);
subtype.add("Bird");
subtype.add(SubType.BIRD);
color.setWhite(true);
power = new MageInt(1);

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -43,7 +44,7 @@ public class BirdToken extends Token {
super("Bird", "1/1 white Bird creature token with flying");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Bird");
subtype.add(SubType.BIRD);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class BoarToken extends Token {
super("Boar", "3/3 green Boar creature token");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Boar");
subtype.add(SubType.BOAR);
power = new MageInt(3);
toughness = new MageInt(3);
}

View file

@ -29,6 +29,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -39,7 +40,7 @@ public class BreedingPitThrullToken extends Token {
public BreedingPitThrullToken() {
super("Thrull", "0/1 black Thrull creature token");
cardType.add(CardType.CREATURE);
subtype.add("Thrull");
subtype.add(SubType.THRULL);
color.setBlack(true);
power = new MageInt(0);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
@ -47,7 +48,7 @@ public class BroodKeeperDragonToken extends Token {
this.setOriginalExpansionSetCode("M15");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(2);
toughness = new MageInt(2);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class ButterflyToken extends Token {
super("Butterfly", "1/1 green Insect creature token with flying named Butterfly");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Insect");
subtype.add(SubType.INSECT);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -42,7 +43,7 @@ public class CallTheSkyBreakerElementalToken extends Token {
cardType.add(CardType.CREATURE);
color.setBlue(true);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("EMA")) {
setTokenType(2);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class CaribouToken extends Token {
super("Caribou", "0/1 white Caribou creature token");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Caribou");
subtype.add(SubType.CARIBOU);
power = new MageInt(0);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class CarnivoreToken extends Token {
super("Carnivore", "3/1 red Beast creature token");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(3);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class CarrionBlackInsectToken extends Token {
super("Insect", "0/1 black Insect creature token");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Insect");
subtype.add(SubType.INSECT);
power = new MageInt(0);
toughness = new MageInt(1);
}

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.VigilanceAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.Token;
/**
@ -43,8 +44,8 @@ public class CatSoldierCreatureToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Cat");
subtype.add("Soldier");
subtype.add(SubType.CAT);
subtype.add(SubType.SOLDIER);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -33,6 +33,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -60,7 +61,7 @@ public class CatToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Cat");
subtype.add(SubType.CAT);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -31,6 +31,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.LifelinkAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -51,7 +52,7 @@ public class CatToken2 extends Token {
setOriginalExpansionSetCode("AKH");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Cat");
subtype.add(SubType.CAT);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(LifelinkAbility.getInstance());

View file

@ -29,6 +29,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.Token;
/**
@ -42,7 +43,7 @@ public class CentaurEnchantmentCreatureToken extends Token {
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Centaur");
subtype.add(SubType.CENTAUR);
power = new MageInt(3);
toughness = new MageInt(3);
this.setOriginalExpansionSetCode("BNG");

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.util.RandomUtil;
@ -52,7 +53,7 @@ public class CentaurToken extends Token {
cardType.add(CardType.CREATURE);
setTokenType(RandomUtil.nextInt(2) +1); // randomly take image 1 or 2
color.setGreen(true);
subtype.add("Centaur");
subtype.add(SubType.CENTAUR);
power = new MageInt(3);
toughness = new MageInt(3);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.IslandwalkAbility;
@ -42,7 +43,7 @@ public class ChasmSkulkerSquidToken extends Token {
this.setOriginalExpansionSetCode("M15");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Squid");
subtype.add(SubType.SQUID);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -42,7 +43,7 @@ public class CitizenToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Citizen");
subtype.add(SubType.CITIZEN);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.common.CanBlockOnlyFlyingAbility;
import mage.abilities.keyword.FlyingAbility;
@ -43,7 +44,7 @@ public class CloudSpriteToken extends Token {
this.setOriginalExpansionSetCode("FUT");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Faerie");
subtype.add(SubType.FAERIE);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.DefenderAbility;
@ -46,7 +47,7 @@ public class ConstructToken extends Token {
this.setOriginalExpansionSetCode(setCode);
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add("Construct");
subtype.add(SubType.CONSTRUCT);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.IslandwalkAbility;
@ -42,7 +43,7 @@ public class CoralBarrierSquidToken extends Token {
this.setOriginalExpansionSetCode("M15");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Squid");
subtype.add(SubType.SQUID);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -43,8 +44,8 @@ public class CorpseweftZombieToken extends Token {
public CorpseweftZombieToken(int power, int toughness) {
super("Zombie Horror", "X/X black Zombie Horror creature token, where X is twice the number of cards exiled this way");
cardType.add(CardType.CREATURE);
subtype.add("Zombie");
subtype.add("Horror");
subtype.add(SubType.ZOMBIE);
subtype.add(SubType.HORROR);
color.setBlack(true);
this.power = new MageInt(power);
this.toughness = new MageInt(toughness);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class CorruptedZendikonOozeToken extends Token {
super("Ooze", "3/3 black Ooze creature");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Ooze");
subtype.add(SubType.OOZE);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class CreakwoodLiegeToken extends Token {
cardType.add(CardType.CREATURE);
color.setBlack(true);
color.setGreen(true);
subtype.add("Worm");
subtype.add(SubType.WORM);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class CrestedSunmareToken extends Token {
power = new MageInt(5);
toughness = new MageInt(5);
color.setWhite(true);
subtype.add("Horse");
subtype.add(SubType.HORSE);
cardType.add(CardType.CREATURE);
}
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.ChangelingAbility;
@ -41,7 +42,7 @@ public class CribSwapShapeshifterWhiteToken extends Token {
super("Shapeshifter", "1/1 colorless Shapeshifter creature token with changeling");
this.setOriginalExpansionSetCode("LRW");
cardType.add(CardType.CREATURE);
subtype.add("Shapeshifter");
subtype.add(SubType.SHAPESHIFTER);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(ChangelingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class CrushOfTentaclesToken extends Token {
this.setExpansionSetCodeForImage("BFZ");
this.cardType.add(CardType.CREATURE);
this.color.setBlue(true);
this.subtype.add("Octopus");
this.subtype.add(SubType.OCTOPUS);
this.power = new MageInt(8);
this.toughness = new MageInt(8);
}

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -44,7 +45,7 @@ public class CurseOfTheSwineBoarToken extends Token {
super("Boar", "2/2 green Boar creature token");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Boar");
subtype.add(SubType.BOAR);
power = new MageInt(2);
toughness = new MageInt(2);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.DefenderAbility;
@ -46,7 +47,7 @@ public class DarettiConstructToken extends Token {
this.setOriginalExpansionSetCode(setCode);
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add("Construct");
subtype.add(SubType.CONSTRUCT);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.MageObjectReference;
import mage.abilities.Ability;
@ -57,7 +58,7 @@ public class DaxosSpiritToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
color.setBlack(true);
subtype.add("Spirit");
subtype.add(SubType.SPIRIT);
power = new MageInt(0);
toughness = new MageInt(0);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new DaxosSpiritSetPTEffect()));

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.ShroudAbility;
@ -41,7 +42,7 @@ public class DeadlyGrubToken extends Token {
super("Insect", "6/1 green Insect creature token with shroud");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Insect");
subtype.add(SubType.INSECT);
power = new MageInt(6);
toughness = new MageInt(1);
this.addAbility(ShroudAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
@ -59,7 +60,7 @@ public class DeathpactAngelToken extends Token {
color.setWhite(true);
color.setBlack(true);
subtype.add("Cleric");
subtype.add(SubType.CLERIC);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.DeathtouchAbility;
@ -41,7 +42,7 @@ public class DeathtouchSnakeToken extends Token {
super("Snake", "1/1 green Snake creature token with deathtouch");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Snake");
subtype.add(SubType.SNAKE);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(DeathtouchAbility.getInstance());

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -43,7 +44,7 @@ public class DemonToken extends Token {
super("Demon", "5/5 black Demon creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Demon");
subtype.add(SubType.DEMON);
power = new MageInt(5);
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -39,6 +40,6 @@ public class DevastatingSummonsElementalToken extends Token {
super("Elemental", "X/X red Elemental creature");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
}
}

View file

@ -35,6 +35,7 @@ import mage.abilities.common.DiesTriggeredAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetCreatureOrPlayer;
/**
@ -47,7 +48,7 @@ public class DevilToken extends Token {
super("Devil", "1/1 red Devil creature with \"When this creature dies, it deals 1 damage to target creature or player.\"");
availableImageSetCodes.addAll(Collections.singletonList("SOI"));
cardType.add(CardType.CREATURE);
subtype.add("Devil");
subtype.add(SubType.DEVIL);
color.setRed(true);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -39,7 +40,7 @@ public class DinOfTheFireherdToken extends Token {
public DinOfTheFireherdToken() {
super("Elemental", "5/5 black and red Elemental creature");
cardType.add(CardType.CREATURE);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
color.setBlack(true);
color.setRed(true);
power = new MageInt(5);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,8 +42,8 @@ public class DjinnMonkToken extends Token {
super("Djinn Monk", "2/2 blue Djinn Monk creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Djinn");
subtype.add("Monk");
subtype.add(SubType.DJINN);
subtype.add(SubType.MONK);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class DjinnToken extends Token {
super("Djinn", "5/5 colorless Djinn artifact creature token with flying");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add("Djinn");
subtype.add(SubType.DJINN);
power = new MageInt(5);
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.DynamicValue;
@ -50,7 +51,7 @@ public class DokaiWeaverofLifeToken extends Token {
super("Elemental", "X/X green Elemental creature token, where X is the number of lands you control");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(0);
toughness = new MageInt(0);
DynamicValue controlledLands = new PermanentsOnBattlefieldCount(filterLands);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -42,7 +43,7 @@ public class DovescapeToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
color.setBlue(true);
subtype.add("Bird");
subtype.add(SubType.BIRD);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());

View file

@ -32,6 +32,7 @@ import mage.abilities.effects.common.DevourEffect;
import mage.abilities.keyword.DevourAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -44,7 +45,7 @@ public class DragonBroodmotherDragonToken extends Token {
cardType.add(CardType.CREATURE);
color.setGreen(true);
color.setRed(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());

View file

@ -33,6 +33,7 @@ import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Duration;
import mage.constants.Zone;
@ -47,7 +48,7 @@ public class DragonEggDragonToken extends Token {
this.setOriginalExpansionSetCode("M14");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(FlyingAbility.getInstance());

View file

@ -34,6 +34,7 @@ import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -61,7 +62,7 @@ public class DragonToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());

View file

@ -33,6 +33,7 @@ import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -60,7 +61,7 @@ public class DragonToken2 extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(5);
toughness = new MageInt(5);
addAbility(FlyingAbility.getInstance());

View file

@ -34,6 +34,7 @@ import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -61,7 +62,7 @@ public class DragonTokenGold extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setGold(true);
subtype.add("Dragon");
subtype.add(SubType.DRAGON);
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class DrakeToken extends Token {
public DrakeToken() {
super("Drake", "2/2 blue Drake creature token with flying");
this.cardType.add(CardType.CREATURE);
this.subtype.add("Drake");
this.subtype.add(SubType.DRAKE);
this.color = ObjectColor.BLUE;
this.power = new MageInt(2);

View file

@ -31,6 +31,7 @@ import java.util.Collections;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -44,7 +45,7 @@ public class DroidToken extends Token {
cardType.add(CardType.CREATURE);
cardType.add(CardType.ARTIFACT);
subtype.add("Droid");
subtype.add(SubType.DROID);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -39,7 +40,7 @@ public class DuneBroodNephilimToken extends Token {
public DuneBroodNephilimToken() {
super("Sand", "1/1 colorless Sand creature token");
cardType.add(CardType.CREATURE);
subtype.add("Sand");
subtype.add(SubType.SAND);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class EdgarMarkovToken extends Token {
super("Vampire", "1/1 black Vampire creature token");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Vampire");
subtype.add(SubType.VAMPIRE);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -32,6 +32,7 @@ import java.util.Collections;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -48,8 +49,8 @@ public class EldraziHorrorToken extends Token {
public EldraziHorrorToken() {
super("Eldrazi Horror", "3/2 colorless Eldrazi Horror creature");
cardType.add(CardType.CREATURE);
subtype.add("Eldrazi");
subtype.add("Horror");
subtype.add(SubType.ELDRAZI);
subtype.add(SubType.HORROR);
power = new MageInt(3);
toughness = new MageInt(2);
availableImageSetCodes = tokenImageSets;

View file

@ -36,6 +36,7 @@ import mage.Mana;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.mana.SimpleManaAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.util.RandomUtil;
@ -54,8 +55,8 @@ public class EldraziScionToken extends Token {
public EldraziScionToken() {
super("Eldrazi Scion", "1/1 colorless Eldrazi Scion creature token with \"Sacrifice this creature: Add {C} to your mana pool.\"");
cardType.add(CardType.CREATURE);
subtype.add("Eldrazi");
subtype.add("Scion");
subtype.add(SubType.ELDRAZI);
subtype.add(SubType.SCION);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GenericMana(1), new SacrificeSourceCost()));

View file

@ -36,6 +36,7 @@ import mage.Mana;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.mana.SimpleManaAbility;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import mage.util.RandomUtil;
@ -54,8 +55,8 @@ public class EldraziSpawnToken extends Token {
public EldraziSpawnToken() {
super("Eldrazi Spawn", "0/1 colorless Eldrazi Spawn creature with \"Sacrifice this creature: Add {C} to your mana pool.\"");
cardType.add(CardType.CREATURE);
subtype.add("Eldrazi");
subtype.add("Spawn");
subtype.add(SubType.ELDRAZI);
subtype.add(SubType.SPAWN);
power = new MageInt(0);
toughness = new MageInt(1);
addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(1), new SacrificeSourceCost()));

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -39,7 +40,7 @@ public class EldraziToken extends Token {
public EldraziToken() {
super("Eldrazi", "10/10 colorless Eldrazi creature token");
cardType.add(CardType.CREATURE);
subtype.add("Eldrazi");
subtype.add(SubType.ELDRAZI);
power = new MageInt(10);
toughness = new MageInt(10);
}

View file

@ -31,6 +31,7 @@ import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -42,7 +43,7 @@ public class ElementalAppealElementalToken extends Token {
super("Elemental", "7/1 red Elemental creature token with trample and haste");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(7);
toughness = new MageInt(1);
addAbility(TrampleAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
@ -41,8 +42,8 @@ public class ElementalCatToken extends Token {
super("Elemental Cat", "1/1 red Elemental Cat creature token");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add("Cat");
subtype.add(SubType.ELEMENTAL);
subtype.add(SubType.CAT);
addAbility(HasteAbility.getInstance());
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -30,6 +30,7 @@ package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -40,7 +41,7 @@ public class ElementalMasteryElementalToken extends Token {
public ElementalMasteryElementalToken() {
super("Elemental", "1/1 red Elemental creature token with haste");
cardType.add(CardType.CREATURE);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
color.setRed(true);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -55,8 +56,8 @@ public class ElementalShamanToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add("Shaman");
subtype.add(SubType.ELEMENTAL);
subtype.add(SubType.SHAMAN);
power = new MageInt(3);
toughness = new MageInt(1);
}

View file

@ -34,6 +34,7 @@ import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -57,7 +58,7 @@ public class ElementalToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(3);
toughness = new MageInt(1);
@ -71,7 +72,7 @@ public class ElementalToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(3);
toughness = new MageInt(1);

View file

@ -33,6 +33,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -60,7 +61,7 @@ public class ElephantToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Elephant");
subtype.add(SubType.ELEPHANT);
power = new MageInt(3);
toughness = new MageInt(3);
}

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
@ -50,8 +51,8 @@ public class ElfToken extends Token {
availableImageSetCodes = tokenImageSets;
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Elf");
subtype.add("Warrior");
subtype.add(SubType.ELF);
subtype.add(SubType.WARRIOR);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -1,48 +1,49 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.game.permanent.token;
import java.util.Collections;
import mage.constants.CardType;
/**
*
* @author Styxo
*/
public class EwokToken extends Token {
public EwokToken() {
super("Ewok", "1/1 green Ewok creature tokens", 1, 1);
availableImageSetCodes.addAll(Collections.singletonList("SWS"));
cardType.add(CardType.CREATURE);
subtype.add("Ewok");
color.setGreen(true);
}
}
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.game.permanent.token;
import java.util.Collections;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* @author Styxo
*/
public class EwokToken extends Token {
public EwokToken() {
super("Ewok", "1/1 green Ewok creature tokens", 1, 1);
availableImageSetCodes.addAll(Collections.singletonList("SWS"));
cardType.add(CardType.CREATURE);
subtype.add(SubType.EWOK);
color.setGreen(true);
}
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class EyesOfTheWisentElementalToken extends Token {
this.setOriginalExpansionSetCode("MMA");
cardType.add(CardType.CREATURE);
color.setGreen(true);
subtype.add("Elemental");
subtype.add(SubType.ELEMENTAL);
power = new MageInt(4);
toughness = new MageInt(4);
setTokenType(1);

View file

@ -33,6 +33,7 @@ import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -52,8 +53,8 @@ public class FaerieRogueToken extends Token {
super("Faerie Rogue", "1/1 black Faerie Rogue creature token with flying");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Faerie");
subtype.add("Rogue");
subtype.add(SubType.FAERIE);
subtype.add(SubType.ROGUE);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class FaerieToken extends Token {
super("Faerie", "1/1 blue Faerie creature tokens with flying");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Faerie");
subtype.add(SubType.FAERIE);
power = new MageInt(1);
toughness = new MageInt(1);
this.addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DiesTriggeredAbility;
@ -46,8 +47,8 @@ public class FesteringGoblinToken extends Token {
this.setOriginalExpansionSetCode("FUT");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Zombie");
subtype.add("Goblin");
subtype.add(SubType.ZOMBIE);
subtype.add(SubType.GOBLIN);
power = new MageInt(1);
toughness = new MageInt(1);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -45,7 +46,7 @@ public class FleshCarverHorrorToken extends Token {
setOriginalExpansionSetCode("C14");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Horror");
subtype.add(SubType.HORROR);
power = new MageInt(xValue);
toughness = new MageInt(xValue);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.keyword.HasteAbility;
@ -43,7 +44,7 @@ public class FlurryOfHornsMinotaurToken extends Token {
this.setOriginalExpansionSetCode("JOU");
cardType.add(CardType.CREATURE);
color.setColor(ObjectColor.RED);
subtype.add("Minotaur");
subtype.add(SubType.MINOTAUR);
power = new MageInt(2);
toughness = new MageInt(3);
addAbility(HasteAbility.getInstance());

View file

@ -32,6 +32,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -45,7 +46,7 @@ public class ForlornPseudammaZombieToken extends Token {
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Zombie");
subtype.add(SubType.ZOMBIE);
power = new MageInt(2);
toughness = new MageInt(2);
this.setOriginalExpansionSetCode("BNG");

View file

@ -31,6 +31,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.mana.GreenManaAbility;
@ -61,8 +62,8 @@ public class FreyaliseLlanowarsFuryToken extends Token {
setOriginalExpansionSetCode(setCode);
this.cardType.add(CardType.CREATURE);
this.color = ObjectColor.GREEN;
this.subtype.add("Elf");
this.subtype.add("Druid");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.DRUID);
this.power = new MageInt(1);
this.toughness = new MageInt(1);

View file

@ -29,6 +29,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -41,7 +42,7 @@ public class FrogToken extends Token {
super("Frog", "1/1 blue Frog creature token");
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add("Frog");
subtype.add(SubType.FROG);
power = new MageInt(1);
toughness = new MageInt(1);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
@ -41,7 +42,7 @@ public class GargoyleToken extends Token {
super("Gargoyle", "3/4 colorless Gargoyle artifact creature token with flying");
cardType.add(CardType.CREATURE);
cardType.add(CardType.ARTIFACT);
subtype.add("Gargoyle");
subtype.add(SubType.GARGOYLE);
power = new MageInt(3);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.DeathtouchAbility;
@ -43,7 +44,7 @@ public class GarrukApexPredatorBeastToken extends Token {
setTokenType(1);
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Beast");
subtype.add(SubType.BEAST);
power = new MageInt(3);
toughness = new MageInt(3);

View file

@ -32,6 +32,7 @@ import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author spjspj
@ -58,7 +59,7 @@ public class GermToken extends Token {
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add("Germ");
subtype.add(SubType.GERM);
power = new MageInt(0);
toughness = new MageInt(0);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.HasteAbility;
@ -42,8 +43,8 @@ public class GiantBaitingGiantWarriorToken extends Token {
cardType.add(CardType.CREATURE);
color.setRed(true);
color.setGreen(true);
subtype.add("Giant");
subtype.add("Warrior");
subtype.add(SubType.GIANT);
subtype.add(SubType.WARRIOR);
power = new MageInt(4);
toughness = new MageInt(4);
this.addAbility(HasteAbility.getInstance());

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -39,7 +40,7 @@ public class GiantToken extends Token {
public GiantToken() {
super("Giant", "4/4 red Giant creature token");
cardType.add(CardType.CREATURE);
subtype.add("Giant");
subtype.add(SubType.GIANT);
color.setRed(true);
power = new MageInt(4);
toughness = new MageInt(4);

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,8 +41,8 @@ public class GiantWarriorToken extends Token {
super("Giant Warrior", "5/5 white Giant Warrior creature token");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Giant");
subtype.add("Warrior");
subtype.add(SubType.GIANT);
subtype.add(SubType.WARRIOR);
power = new MageInt(5);
toughness = new MageInt(5);
}

View file

@ -28,6 +28,7 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
/**
@ -40,7 +41,7 @@ public class GnomeToken extends Token {
super("Gnome", "1/1 colorless Gnome artifact creature token");
cardType.add(CardType.ARTIFACT);
cardType.add(CardType.CREATURE);
subtype.add("Gnome");
subtype.add(SubType.GNOME);
power = new MageInt(1);
toughness = new MageInt(1);
}

Some files were not shown because too many files have changed in this diff Show more