From df0edb07b73bba6cfdf137d976fd6464168cd604 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 20 Jul 2015 13:51:12 +0200 Subject: [PATCH] * Gather the Pack - Fixed that the second selected card (spell mastery) was not moved to hand. --- Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java b/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java index 31888fd17a7..c6087d29b07 100644 --- a/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java +++ b/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java @@ -31,7 +31,6 @@ import java.util.UUID; import mage.abilities.Ability; import mage.abilities.condition.common.SpellMasteryCondition; import mage.abilities.effects.OneShotEffect; -import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.Cards; import mage.cards.CardsImpl; @@ -98,10 +97,10 @@ class GatherThePackEffect extends OneShotEffect { } TargetCard target = new TargetCard(0, max, Zone.LIBRARY, new FilterCreatureCard("creature card" + (max > 1 ? "s" : "") + " to put into your hand")); if (controller.choose(Outcome.PutCreatureInPlay, cards, target, game)) { - Card card = cards.get(target.getFirstTarget(), game); - if (card != null) { - cards.remove(card); - controller.moveCards(card, Zone.LIBRARY, Zone.HAND, source, game); + Cards cardsToHand = new CardsImpl(target.getTargets()); + if (cardsToHand.size() > 0) { + cards.removeAll(cardsToHand); + controller.moveCards(cardsToHand, Zone.LIBRARY, Zone.HAND, source, game); } } }