From c9e7642d90829175df0154dbc842abc7779acf0d Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Thu, 26 Jan 2012 16:13:48 +0000 Subject: [PATCH] "Forth the Three Hunters!" --- .../lotro/cards/set15/elven/Card15_205.java | 81 +++++++++++++++++++ .../lotro/cards/set15/gondor/Card15_206.java | 81 +++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/elven/Card15_205.java create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gondor/Card15_206.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/elven/Card15_205.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/elven/Card15_205.java new file mode 100644 index 000000000..921cf4106 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/elven/Card15_205.java @@ -0,0 +1,81 @@ +package com.gempukku.lotro.cards.set15.elven; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.conditions.AndCondition; +import com.gempukku.lotro.cards.modifiers.evaluator.ConditionEvaluator; +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.ActivateCardAction; +import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.effects.DrawCardsEffect; +import com.gempukku.lotro.logic.modifiers.SpotCondition; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Hunters + * Side: Free + * Culture: Dwarven + * Twilight Cost: 2 + * Type: Condition • Support Area + * Game Text: Archery: Exert Legolas and exert Aragorn to wound a minion. Skirmish: Exert Aragorn and spot Gimli to make + * a minion strength -1 (or -3 if Aragorn and Gimli are hunters). Regroup: Exert Gimli and spot Legolas to draw a card + * (or 2 cards if Gimli and Legolas are hunters). + */ +public class Card15_205 extends AbstractPermanent { + public Card15_205() { + super(Side.FREE_PEOPLE, 2, CardType.CONDITION, Culture.ELVEN, Zone.SUPPORT, "Forth the Three Hunters!"); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ARCHERY, self) + && PlayConditions.canExert(self, game, Filters.legolas) + && PlayConditions.canExert(self, game, Filters.aragorn)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.legolas)); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.aragorn)); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self) + && PlayConditions.canExert(self, game, Filters.aragorn) + && PlayConditions.canSpot(game, Filters.gimli)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.aragorn)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, + new ConditionEvaluator(-1, -3, + new AndCondition( + new SpotCondition(Filters.aragorn, Keyword.HUNTER), + new SpotCondition(Filters.gimli, Keyword.HUNTER))), CardType.MINION)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.REGROUP, self) + && PlayConditions.canExert(self, game, Filters.gimli) + && PlayConditions.canSpot(game, Filters.legolas)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.gimli)); + action.appendEffect( + new DrawCardsEffect(action, playerId, 1)); + if (PlayConditions.canSpot(game, Filters.gimli, Keyword.HUNTER) + && PlayConditions.canSpot(game, Filters.legolas, Keyword.HUNTER)) + action.appendEffect( + new DrawCardsEffect(action, playerId, 1)); + return Collections.singletonList(action); + } + return null; + } +} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gondor/Card15_206.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gondor/Card15_206.java new file mode 100644 index 000000000..876861362 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set15/gondor/Card15_206.java @@ -0,0 +1,81 @@ +package com.gempukku.lotro.cards.set15.gondor; + +import com.gempukku.lotro.cards.AbstractPermanent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect; +import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect; +import com.gempukku.lotro.cards.modifiers.conditions.AndCondition; +import com.gempukku.lotro.cards.modifiers.evaluator.ConditionEvaluator; +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.ActivateCardAction; +import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.effects.DrawCardsEffect; +import com.gempukku.lotro.logic.modifiers.SpotCondition; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Hunters + * Side: Free + * Culture: Dwarven + * Twilight Cost: 2 + * Type: Condition • Support Area + * Game Text: Archery: Exert Legolas and exert Aragorn to wound a minion. Skirmish: Exert Aragorn and spot Gimli to make + * a minion strength -1 (or -3 if Aragorn and Gimli are hunters). Regroup: Exert Gimli and spot Legolas to draw a card + * (or 2 cards if Gimli and Legolas are hunters). + */ +public class Card15_206 extends AbstractPermanent { + public Card15_206() { + super(Side.FREE_PEOPLE, 2, CardType.CONDITION, Culture.GONDOR, Zone.SUPPORT, "Forth the Three Hunters!"); + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.ARCHERY, self) + && PlayConditions.canExert(self, game, Filters.legolas) + && PlayConditions.canExert(self, game, Filters.aragorn)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.legolas)); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.aragorn)); + action.appendEffect( + new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self) + && PlayConditions.canExert(self, game, Filters.aragorn) + && PlayConditions.canSpot(game, Filters.gimli)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.aragorn)); + action.appendEffect( + new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, + new ConditionEvaluator(-1, -3, + new AndCondition( + new SpotCondition(Filters.aragorn, Keyword.HUNTER), + new SpotCondition(Filters.gimli, Keyword.HUNTER))), CardType.MINION)); + return Collections.singletonList(action); + } + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.REGROUP, self) + && PlayConditions.canExert(self, game, Filters.gimli) + && PlayConditions.canSpot(game, Filters.legolas)) { + ActivateCardAction action = new ActivateCardAction(self); + action.appendCost( + new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Filters.gimli)); + action.appendEffect( + new DrawCardsEffect(action, playerId, 1)); + if (PlayConditions.canSpot(game, Filters.gimli, Keyword.HUNTER) + && PlayConditions.canSpot(game, Filters.legolas, Keyword.HUNTER)) + action.appendEffect( + new DrawCardsEffect(action, playerId, 1)); + return Collections.singletonList(action); + } + return null; + } +}