From 14d79588e6c25e5829c50d5b4e57c97dbd378c80 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 13 Sep 2015 20:48:56 +0200 Subject: [PATCH] * Gather the Pack - Fixed that the cards were not revealed. --- Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java b/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java index c6087d29b0..2d02e4ee35 100644 --- a/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java +++ b/Mage.Sets/src/mage/sets/magicorigins/GatherThePack.java @@ -28,6 +28,7 @@ package mage.sets.magicorigins; import java.util.UUID; +import mage.MageObject; import mage.abilities.Ability; import mage.abilities.condition.common.SpellMasteryCondition; import mage.abilities.effects.OneShotEffect; @@ -83,12 +84,14 @@ class GatherThePackEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); - if (controller == null) { + MageObject sourceObject = source.getSourceObject(game); + if (controller == null || sourceObject == null) { return false; } Cards cards = new CardsImpl(Zone.LIBRARY); cards.addAll(controller.getLibrary().getTopCards(game, 5)); if (!cards.isEmpty()) { + controller.revealCards(sourceObject.getIdName(), cards, game); int creatures = cards.count(new FilterCreatureCard(), source.getSourceId(), source.getControllerId(), game); if (creatures > 0) { int max = 1;