fix wrong-typed tokens and abilities

This commit is contained in:
Neil Gentleman 2015-10-28 23:25:17 -07:00
parent b23bd0cf1f
commit 995063039d
6 changed files with 9 additions and 17 deletions

View file

@ -39,8 +39,6 @@ import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.PreventDamageToTargetEffect;
import mage.cards.CardImpl;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.filter.predicate.permanent.ControllerPredicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -52,12 +50,6 @@ import mage.target.targetpointer.FixedTarget;
*/
public class KitsunePalliator extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Samurai you control");
static {
filter.add(new ControllerPredicate(TargetController.YOU));
filter.add(new SubtypePredicate("Samurai"));
}
public KitsunePalliator(UUID ownerId) {
super(ownerId, 14, "Kitsune Palliator", Rarity.UNCOMMON, new CardType[]{CardType.CREATURE}, "{2}{W}");
this.expansionSetCode = "BOK";

View file

@ -70,7 +70,7 @@ public class LeafdrakeRoost extends CardImpl {
this.addAbility(ability);
// Enchanted land has "{G}{U}, {tap}: Put a 2/2 green and blue Drake creature token with flying onto the battlefield."
Ability abilityToGain = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new LeafdrakeRoostDragonToken()), new ManaCostsImpl("{G}{U}"));
Ability abilityToGain = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new LeafdrakeRoostDrakeToken()), new ManaCostsImpl("{G}{U}"));
abilityToGain.addCost(new TapSourceCost());
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(abilityToGain, AttachmentType.AURA, Duration.WhileOnBattlefield,
"Enchanted land has \"{G}{U}, {t}: Put a 2/2 green and blue Drake creature token with flying onto the battlefield.\"")));
@ -87,14 +87,14 @@ public class LeafdrakeRoost extends CardImpl {
}
}
class LeafdrakeRoostDragonToken extends Token {
class LeafdrakeRoostDrakeToken extends Token {
public LeafdrakeRoostDragonToken() {
super("Dragon", "2/2 green and blue Drake creature token with flying");
public LeafdrakeRoostDrakeToken() {
super("Drake", "2/2 green and blue Drake creature token with flying");
cardType.add(CardType.CREATURE);
color.setGreen(true);
color.setBlue(true);
subtype.add("Dragon");
subtype.add("Drake");
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());

View file

@ -52,7 +52,7 @@ public class BrighthearthBanneret extends CardImpl {
static {
filter.add(Predicates.or(
new SubtypePredicate("Elemental"),
new SubtypePredicate("Shaman")));
new SubtypePredicate("Warrior")));
}
public BrighthearthBanneret(UUID ownerId) {

View file

@ -80,7 +80,7 @@ class TreefolkToken extends Token {
super("Treefolk", "5/6 green Treefolk creature");
cardType.add(CardType.CREATURE);
this.color.setGreen(true);
subtype.add("Spirit");
subtype.add("Treefolk");
power = new MageInt(5);
toughness = new MageInt(6);
}

View file

@ -93,7 +93,7 @@ class GriffinToken extends Token {
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add("Soldier");
subtype.add("Griffin");
power = new MageInt(2);
toughness = new MageInt(2);
this.addAbility(FlyingAbility.getInstance());

View file

@ -86,7 +86,7 @@ class OpalGuardianGargoyle extends Token {
public OpalGuardianGargoyle() {
super("Gargoyle", "a 3/4 Gargoyle creature with flying and protection from red");
cardType.add(CardType.CREATURE);
subtype.add("Knight");
subtype.add("Gargoyle");
power = new MageInt(3);
toughness = new MageInt(4);
this.addAbility(FlyingAbility.getInstance());