From 10cdf10da66f9e3ca35b042d1630cc71af24357d Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Mon, 13 Dec 2010 23:45:16 -0500 Subject: [PATCH] fixed issue 13 --- .../mage/abilities/costs/common/DiscardSourceCost.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/abilities/costs/common/DiscardSourceCost.java b/Mage/src/mage/abilities/costs/common/DiscardSourceCost.java index f75f9f22107..5f35893967a 100644 --- a/Mage/src/mage/abilities/costs/common/DiscardSourceCost.java +++ b/Mage/src/mage/abilities/costs/common/DiscardSourceCost.java @@ -55,8 +55,13 @@ public class DiscardSourceCost extends CostImpl { @Override public boolean pay(Game game, UUID sourceId, UUID controllerId, boolean noMana) { Player player = game.getPlayer(controllerId); - Card card = player.getHand().get(sourceId, game); - return player.discard(card, null, game); + if (player != null) { + Card card = player.getHand().get(sourceId, game); + if (card != null) { + paid = player.discard(card, null, game); + } + } + return paid; } @Override