From 59356254f5d07d8f6a992b1a76e571656d854d67 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 12 Jul 2014 15:20:02 +0200 Subject: [PATCH] * Skirk Prospector - Fixed wrong cost of the activated ability. --- .../src/mage/sets/onslaught/SkirkProspector.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/onslaught/SkirkProspector.java b/Mage.Sets/src/mage/sets/onslaught/SkirkProspector.java index 56c9181c01..76cc122e08 100644 --- a/Mage.Sets/src/mage/sets/onslaught/SkirkProspector.java +++ b/Mage.Sets/src/mage/sets/onslaught/SkirkProspector.java @@ -34,9 +34,13 @@ import mage.constants.Rarity; import mage.MageInt; import mage.Mana; import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.mana.SimpleManaAbility; import mage.cards.CardImpl; import mage.constants.Zone; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.filter.predicate.mageobject.SubtypePredicate; +import mage.target.common.TargetControlledCreaturePermanent; /** * @@ -44,6 +48,12 @@ import mage.constants.Zone; */ public class SkirkProspector extends CardImpl { + private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a Goblin"); + + static { + filter.add(new SubtypePredicate(("Goblin"))); + } + public SkirkProspector(UUID ownerId) { super(ownerId, 230, "Skirk Prospector", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{R}"); this.expansionSetCode = "ONS"; @@ -54,7 +64,7 @@ public class SkirkProspector extends CardImpl { this.toughness = new MageInt(1); // Sacrifice a Goblin: Add {R} to your mana pool. - this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new SacrificeSourceCost())); + this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new SacrificeTargetCost(new TargetControlledCreaturePermanent(1,1,filter,true)))); } public SkirkProspector(final SkirkProspector card) {