From 1b7a682c01bbdfa26f7827900ca0472a06441185 Mon Sep 17 00:00:00 2001 From: North Date: Sun, 8 Jul 2012 13:03:41 +0300 Subject: [PATCH] Fixed Talrand Sky Summoner --- .../src/mage/sets/magic2013/TalrandSkySummoner.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magic2013/TalrandSkySummoner.java b/Mage.Sets/src/mage/sets/magic2013/TalrandSkySummoner.java index 302b48d4a5..c5321dc8e3 100644 --- a/Mage.Sets/src/mage/sets/magic2013/TalrandSkySummoner.java +++ b/Mage.Sets/src/mage/sets/magic2013/TalrandSkySummoner.java @@ -34,6 +34,8 @@ import mage.MageInt; import mage.abilities.common.SpellCastTriggeredAbility; import mage.abilities.effects.common.CreateTokenEffect; import mage.cards.CardImpl; +import mage.filter.Filter; +import mage.filter.FilterSpell; import mage.game.permanent.token.DrakeToken; /** @@ -42,6 +44,14 @@ import mage.game.permanent.token.DrakeToken; */ public class TalrandSkySummoner extends CardImpl { + private static final FilterSpell filter = new FilterSpell("instant or sorcery card"); + + static { + filter.getCardType().add(CardType.INSTANT); + filter.getCardType().add(CardType.SORCERY); + filter.setScopeSubtype(Filter.ComparisonScope.Any); + } + public TalrandSkySummoner(UUID ownerId) { super(ownerId, 72, "Talrand, Sky Summoner", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{2}{U}{U}"); this.expansionSetCode = "M13"; @@ -54,7 +64,7 @@ public class TalrandSkySummoner extends CardImpl { this.toughness = new MageInt(2); // Whenever you cast an instant or sorcery spell, put a 2/2 blue Drake creature token with flying onto the battlefield. - this.addAbility(new SpellCastTriggeredAbility(new CreateTokenEffect(new DrakeToken()), false)); + this.addAbility(new SpellCastTriggeredAbility(new CreateTokenEffect(new DrakeToken()), filter, false)); } public TalrandSkySummoner(final TalrandSkySummoner card) {