From 3fa12ee2bba4bd7f7ad8a28ebac74438146183f9 Mon Sep 17 00:00:00 2001 From: Quercitron Date: Fri, 4 Jul 2014 18:49:54 +0400 Subject: [PATCH] * Life from the Loam - fix TargetCardInYourGraveyard: zero cards can always be chosen --- Mage/src/mage/target/common/TargetCardInYourGraveyard.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage/src/mage/target/common/TargetCardInYourGraveyard.java b/Mage/src/mage/target/common/TargetCardInYourGraveyard.java index 6767a71eca..066e6f0007 100644 --- a/Mage/src/mage/target/common/TargetCardInYourGraveyard.java +++ b/Mage/src/mage/target/common/TargetCardInYourGraveyard.java @@ -131,6 +131,9 @@ public class TargetCardInYourGraveyard extends TargetCard { public boolean canChoose(UUID sourceId, UUID sourceControllerId, Game game) { Player player = game.getPlayer(sourceControllerId); if (player != null) { + if (this.minNumberOfTargets == 0) { + return true; + } int possibleTargets = 0; for (Card card : player.getGraveyard().getCards(filter, game)) { if (sourceId == null || isNotTarget() || !game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.TARGET, card.getId(), sourceId, sourceControllerId))) {