From 092951a24ac5c1045e0de4ed5131cfa306938430 Mon Sep 17 00:00:00 2001 From: LoneFox Date: Tue, 15 Dec 2015 14:28:29 +0200 Subject: [PATCH] Fix Bounty of the Hunt's alternative cost to work the same way as other cards of that cycle. --- .../sets/masterseditionii/BountyOfTheHunt.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Mage.Sets/src/mage/sets/masterseditionii/BountyOfTheHunt.java b/Mage.Sets/src/mage/sets/masterseditionii/BountyOfTheHunt.java index d95658f315..4701b9be74 100644 --- a/Mage.Sets/src/mage/sets/masterseditionii/BountyOfTheHunt.java +++ b/Mage.Sets/src/mage/sets/masterseditionii/BountyOfTheHunt.java @@ -36,7 +36,9 @@ import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; import mage.counters.CounterType; -import mage.filter.FilterCard; +import mage.filter.common.FilterOwnedCard; +import mage.filter.predicate.Predicates; +import mage.filter.predicate.mageobject.CardIdPredicate; import mage.filter.predicate.mageobject.ColorPredicate; import mage.target.common.TargetCardInHand; import mage.target.common.TargetCreaturePermanentAmount; @@ -47,18 +49,14 @@ import mage.target.common.TargetCreaturePermanentAmount; */ public class BountyOfTheHunt extends CardImpl { - private static final FilterCard filter = new FilterCard("a green card from your hand"); - - static { - filter.add(new ColorPredicate(ObjectColor.GREEN)); - } - - public BountyOfTheHunt(UUID ownerId) { super(ownerId, 154, "Bounty of the Hunt", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{3}{G}{G}"); this.expansionSetCode = "ME2"; // You may exile a green card from your hand rather than pay Bounty of the Hunt's mana cost. + FilterOwnedCard filter = new FilterOwnedCard("green card from your hand"); + filter.add(new ColorPredicate(ObjectColor.GREEN)); + filter.add(Predicates.not(new CardIdPredicate(this.getId()))); // the exile cost can never be paid with the card itself this.addAbility(new AlternativeCostSourceAbility(new ExileFromHandCost(new TargetCardInHand(filter)))); // Distribute three +1/+1 counters among one, two, or three target creatures. For each +1/+1 counter you put on a creature this way, remove a +1/+1 counter from that creature at the beginning of the next cleanup step.