From 87cb36510aafa8c79873f4c70eb990aaa9c089d9 Mon Sep 17 00:00:00 2001 From: PhallenCassidy Date: Wed, 12 Sep 2018 11:12:46 -0400 Subject: [PATCH] Fix to 6P122 "The Witch-king, Deathless Lord" Can now wound an ally once if and only if all companions are exhausted and no ally can be wounded twice --- .../lotro/cards/set6/wraith/Card6_122.java | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set6/wraith/Card6_122.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set6/wraith/Card6_122.java index d5413a409..c82912405 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set6/wraith/Card6_122.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set6/wraith/Card6_122.java @@ -5,6 +5,7 @@ import com.gempukku.lotro.cards.TriggerConditions; import com.gempukku.lotro.cards.effects.ChoiceEffect; import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; import com.gempukku.lotro.common.*; +import com.gempukku.lotro.filters.Filters; import com.gempukku.lotro.game.PhysicalCard; import com.gempukku.lotro.game.state.LotroGame; import com.gempukku.lotro.logic.actions.RequiredTriggerAction; @@ -39,13 +40,20 @@ public class Card6_122 extends AbstractMinion { if (TriggerConditions.forEachKilledInASkirmish(game, effectResult, Race.NAZGUL, CardType.COMPANION)) { RequiredTriggerAction action = new RequiredTriggerAction(self); List possibleEffects = new LinkedList(); - possibleEffects.add( - new ChooseAndWoundCharactersEffect(action, self.getOwner(), 1, 1, 2, CardType.ALLY) { - @Override - public String getText(LotroGame game) { - return "Wound an ally twice"; - } - }); + if (Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), + CardType.ALLY, Filters.moreVitalityThan(1))) { + possibleEffects.add( + new ChooseAndWoundCharactersEffect(action, self.getOwner(), 1, 1, 2, CardType.ALLY) { + @Override + public String getText(LotroGame game) { + return "Wound an ally twice"; + } + }); + } else if (!Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), + CardType.COMPANION, Filters.moreVitalityThan(1))) { + possibleEffects.add( + new ChooseAndWoundCharactersEffect(action, self.getOwner(), 1, 1, 1, CardType.ALLY)); + } possibleEffects.add( new ChooseAndExertCharactersEffect(action, self.getOwner(), 1, 1, CardType.COMPANION) { @Override