From 43f7c1acfb2d67550400c68e34efe60964d1c79b Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 5 Jun 2012 10:38:43 +0000 Subject: [PATCH] - "Host of Udun" now correctly reduces the cost if threats are removed, when card could be played for full cost. --- .../discount/RemoveThreatsToDiscountEffect.java | 12 +++++++----- .../src/main/webapp/includes/changeLog.html | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/effects/discount/RemoveThreatsToDiscountEffect.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/effects/discount/RemoveThreatsToDiscountEffect.java index 21a09050a..44f7e3dd0 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/effects/discount/RemoveThreatsToDiscountEffect.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/effects/discount/RemoveThreatsToDiscountEffect.java @@ -49,11 +49,13 @@ public class RemoveThreatsToDiscountEffect extends AbstractSubActionEffect imple @Override public void decisionMade(String result) throws DecisionResultInvalidException { int threats = getValidatedResult(result); - SubAction subAction = new SubAction(_action); - subAction.appendEffect( - new RemoveThreatsEffect(_action.getActionSource(), threats)); - processSubAction(game, subAction); - _threatsRemoved = _minimalThreatsToRemove; + if (threats > 0) { + SubAction subAction = new SubAction(_action); + subAction.appendEffect( + new RemoveThreatsEffect(_action.getActionSource(), threats)); + processSubAction(game, subAction); + _threatsRemoved = threats; + } } } ); diff --git a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html index fc8385c24..a237e7471 100644 --- a/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html +++ b/gemp-lotr/gemp-lotr-web/src/main/webapp/includes/changeLog.html @@ -1,4 +1,7 @@
+5 Jun. 2012
+- "Host of Udun" now correctly reduces the cost if threats are removed, when card could be played for full cost.
+
 4 Jun. 2012
 - Reworked "Orkish Sneak".