Removed duplicate enchantment bird token class

This commit is contained in:
PurpleCrowbar 2022-06-05 13:40:55 +01:00
parent 2074a02920
commit cb6e6b234f
7 changed files with 58 additions and 80 deletions

View file

@ -1,38 +0,0 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
/**
*
* @author spjspj
*/
public final class AerieWorshippersBirdToken extends TokenImpl {
public AerieWorshippersBirdToken() {
super("Bird Token", "2/2 blue Bird enchantment creature token with flying");
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add(SubType.BIRD);
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
this.setOriginalExpansionSetCode("BNG");
this.setTokenType(2);
}
public AerieWorshippersBirdToken(final AerieWorshippersBirdToken token) {
super(token);
}
public AerieWorshippersBirdToken copy() {
return new AerieWorshippersBirdToken(this);
}
}

View file

@ -43,5 +43,8 @@ public final class BirdToken extends TokenImpl {
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("C16")) {
setTokenType(2);
}
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("BNG")) {
setTokenType(2);
}
}
}

View file

@ -0,0 +1,49 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import java.util.Arrays;
/**
*
* @author spjspj
*/
public final class EnchantmentBirdToken extends TokenImpl {
public EnchantmentBirdToken() {
super("Bird Token", "2/2 blue Bird enchantment creature token with flying");
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setBlue(true);
subtype.add(SubType.BIRD);
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());
availableImageSetCodes = Arrays.asList("BNG");
}
@Override
public void setExpansionSetCodeForImage(String code) {
super.setExpansionSetCodeForImage(code);
if (getOriginalExpansionSetCode() != null && getOriginalExpansionSetCode().equals("BNG")) {
setTokenType(1);
}
}
public EnchantmentBirdToken(final EnchantmentBirdToken token) {
super(token);
}
public EnchantmentBirdToken copy() {
return new EnchantmentBirdToken(this);
}
}

View file

@ -1,36 +0,0 @@
package mage.game.permanent.token;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.MageInt;
import mage.ObjectColor;
import mage.abilities.keyword.FlyingAbility;
/**
*
* @author spjspj
*/
public final class RiseOfEaglesBirdToken extends TokenImpl {
public RiseOfEaglesBirdToken() {
super("Bird Token", "2/2 blue Bird enchantment creature tokens with flying");
this.setOriginalExpansionSetCode("BNG");
this.setTokenType(2);
cardType.add(CardType.ENCHANTMENT);
cardType.add(CardType.CREATURE);
color.setColor(ObjectColor.BLUE);
subtype.add(SubType.BIRD);
power = new MageInt(2);
toughness = new MageInt(2);
addAbility(FlyingAbility.getInstance());
}
public RiseOfEaglesBirdToken(final RiseOfEaglesBirdToken token) {
super(token);
}
public RiseOfEaglesBirdToken copy() {
return new RiseOfEaglesBirdToken(this);
}
}