mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Refactor - make VampireToken classes inner classes to avoid collision
This commit is contained in:
parent
171e9f183d
commit
01592c7e50
4 changed files with 42 additions and 32 deletions
|
@ -96,18 +96,17 @@ public class SorinLordOfInnistrad extends CardImpl {
|
|||
public SorinLordOfInnistrad copy() {
|
||||
return new SorinLordOfInnistrad(this);
|
||||
}
|
||||
}
|
||||
|
||||
class VampireToken extends Token {
|
||||
|
||||
VampireToken() {
|
||||
super("Vampire", "a 1/1 black Vampire creature token with lifelink");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(LifelinkAbility.getInstance());
|
||||
class VampireToken extends Token {
|
||||
VampireToken() {
|
||||
super("Vampire", "a 1/1 black Vampire creature token with lifelink");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(LifelinkAbility.getInstance());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,16 +91,16 @@ public class BloodlineKeeper extends CardImpl {
|
|||
public BloodlineKeeper copy() {
|
||||
return new BloodlineKeeper(this);
|
||||
}
|
||||
}
|
||||
|
||||
class VampireToken extends Token {
|
||||
VampireToken() {
|
||||
super("Vampire", "a 2/2 black Vampire creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
class VampireToken extends Token {
|
||||
VampireToken() {
|
||||
super("Vampire", "a 2/2 black Vampire creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ import mage.abilities.keyword.FlyingAbility;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.permanent.token.Token;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -83,4 +84,16 @@ public class LordOfLineage extends CardImpl {
|
|||
public LordOfLineage copy() {
|
||||
return new LordOfLineage(this);
|
||||
}
|
||||
|
||||
class VampireToken extends Token {
|
||||
VampireToken() {
|
||||
super("Vampire", "a 2/2 black Vampire creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,17 +101,15 @@ class KalitasDestroyEffect extends OneShotEffect {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
class VampireToken extends Token {
|
||||
|
||||
public VampireToken(int tokenPower, int tokenToughness) {
|
||||
super("Vampire", new StringBuilder(tokenPower).append("/").append(tokenToughness).append(" black Vampire creature token").toString());
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(tokenPower);
|
||||
toughness = new MageInt(tokenToughness);
|
||||
class VampireToken extends Token {
|
||||
public VampireToken(int tokenPower, int tokenToughness) {
|
||||
super("Vampire", new StringBuilder(tokenPower).append("/").append(tokenToughness).append(" black Vampire creature token").toString());
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add("Vampire");
|
||||
power = new MageInt(tokenPower);
|
||||
toughness = new MageInt(tokenToughness);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue