From c42eb58a163cf48cba7a8d4257cbc69e7aed9e35 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 2 Nov 2011 15:06:12 +0000 Subject: [PATCH] "Duty of Two" --- .../lotro/cards/set7/gondor/Card7_089.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gondor/Card7_089.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gondor/Card7_089.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gondor/Card7_089.java new file mode 100644 index 000000000..1cc79a0ff --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set7/gondor/Card7_089.java @@ -0,0 +1,43 @@ +package com.gempukku.lotro.cards.set7.gondor; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.common.CardType; +import com.gempukku.lotro.common.Culture; +import com.gempukku.lotro.common.Phase; +import com.gempukku.lotro.common.Side; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; +import com.gempukku.lotro.logic.effects.AddThreatsEffect; +import com.gempukku.lotro.logic.effects.HealCharactersEffect; + +/** + * Set: The Return of the King + * Side: Free + * Culture: Gondor + * Twilight Cost: 1 + * Type: Event • Fellowship + * Game Text: Add 3 threats to heal all [GONDOR] companions. + */ +public class Card7_089 extends AbstractEvent { + public Card7_089() { + super(Side.FREE_PEOPLE, 1, Culture.GONDOR, "Duty of Two", Phase.FELLOWSHIP); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + return super.checkPlayRequirements(playerId, game, self, twilightModifier) + && PlayConditions.canAddThreat(game, self, 3); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new AddThreatsEffect(playerId, self, 3)); + action.appendEffect( + new HealCharactersEffect(self, Culture.GONDOR, CardType.COMPANION)); + return action; + } +}