Refactor - moved KorAllyToken to shared area

This commit is contained in:
JOAC69 2016-09-25 00:18:37 -05:00
parent a5c6cdd9cf
commit 9eb078842b
5 changed files with 25 additions and 31 deletions

View file

@ -27,8 +27,6 @@
*/ */
package mage.sets.battleforzendikar; package mage.sets.battleforzendikar;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Mode; import mage.abilities.Mode;
import mage.abilities.common.LandfallAbility; import mage.abilities.common.LandfallAbility;
import mage.abilities.effects.common.CreateTokenEffect; import mage.abilities.effects.common.CreateTokenEffect;
@ -37,7 +35,9 @@ import mage.cards.CardImpl;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.game.permanent.token.Token; import mage.game.permanent.token.KorAllyToken;
import java.util.UUID;
/** /**
* *
@ -66,16 +66,3 @@ public class RetreatToEmeria extends CardImpl {
return new RetreatToEmeria(this); return new RetreatToEmeria(this);
} }
} }
class KorAllyToken extends Token {
public KorAllyToken() {
super("Kor Ally", "1/1 white Kor Ally creature token");
cardType.add(CardType.CREATURE);
subtype.add("Kor");
subtype.add("Ally");
color.setWhite(true);
power = new MageInt(1);
toughness = new MageInt(1);
}
}

View file

@ -35,6 +35,7 @@ import mage.cards.CardImpl;
import mage.constants.AbilityWord; import mage.constants.AbilityWord;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.game.permanent.token.KorAllyToken;
/** /**
* *

View file

@ -28,7 +28,7 @@
package mage.sets.oathofthegatewatch; package mage.sets.oathofthegatewatch;
import java.util.UUID; import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.AttacksAttachedTriggeredAbility; import mage.abilities.common.AttacksAttachedTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.costs.mana.GenericManaCost;
@ -40,7 +40,7 @@ import mage.constants.CardType;
import mage.constants.Outcome; import mage.constants.Outcome;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.Zone; import mage.constants.Zone;
import mage.game.permanent.token.Token; import mage.game.permanent.token.KorAllyToken;
/** /**
* *
@ -71,16 +71,3 @@ public class CaptainsClaws extends CardImpl {
} }
} }
class KorAllyToken extends Token {
public KorAllyToken() {
super("Kor Ally", "1/1 white Kor Ally creature token");
this.setExpansionSetCodeForImage("BFZ");
cardType.add(CardType.CREATURE);
subtype.add("Kor");
subtype.add("Ally");
color.setWhite(true);
power = new MageInt(1);
toughness = new MageInt(1);
}
}

View file

@ -44,6 +44,7 @@ import mage.game.Game;
import mage.game.events.EntersTheBattlefieldEvent; import mage.game.events.EntersTheBattlefieldEvent;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.permanent.Permanent; import mage.game.permanent.Permanent;
import mage.game.permanent.token.KorAllyToken;
/** /**
* *

View file

@ -0,0 +1,18 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
public class KorAllyToken extends Token {
public KorAllyToken() {
super("Kor Ally", "1/1 white Kor Ally creature token");
this.setExpansionSetCodeForImage("BFZ");
cardType.add(CardType.CREATURE);
subtype.add("Kor");
subtype.add("Ally");
color.setWhite(true);
power = new MageInt(1);
toughness = new MageInt(1);
}
}