From 0090975231f81b271043500822782b65058bfe49 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Wed, 29 Feb 2012 14:24:47 +0000 Subject: [PATCH] "Miruvore" --- .../lotro/cards/set18/elven/Card18_016.java | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_016.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_016.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_016.java new file mode 100644 index 000000000..cd71c0171 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/elven/Card18_016.java @@ -0,0 +1,43 @@ +package com.gempukku.lotro.cards.set18.elven; + +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.ChooseAndHealCharactersEffect; + +/** + * Set: Treachery & Deceit + * Side: Free + * Culture: Elven + * Twilight Cost: 0 + * Type: Event • Fellowship + * Game Text: Add 2 threats to heal an [ELVEN] companion. + */ +public class Card18_016 extends AbstractEvent { + public Card18_016() { + super(Side.FREE_PEOPLE, 0, Culture.ELVEN, "Miruvore", Phase.FELLOWSHIP); + } + + @Override + public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) { + return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile) + && PlayConditions.canAddThreat(game, self, 2); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + action.appendCost( + new AddThreatsEffect(playerId, self, 2)); + action.appendEffect( + new ChooseAndHealCharactersEffect(action, playerId, Culture.ELVEN, CardType.COMPANION)); + return action; + } +}