From 03b1d34f804175fa3a08f93c0e96e76fbedcf0e4 Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 7 Feb 2012 15:28:11 +0000 Subject: [PATCH] "Covetous Wisp" --- .../lotro/cards/set16/wraith/Card16_003.java | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set16/wraith/Card16_003.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set16/wraith/Card16_003.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set16/wraith/Card16_003.java new file mode 100644 index 000000000..c85b82d08 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set16/wraith/Card16_003.java @@ -0,0 +1,50 @@ +package com.gempukku.lotro.cards.set16.wraith; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.RemoveTwilightEffect; +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.OptionalTriggerAction; +import com.gempukku.lotro.logic.timing.EffectResult; + +import java.util.Collections; +import java.util.List; + +/** + * Set: The Wraith Collection + * Side: Shadow + * Culture: Wraith + * Twilight Cost: 2 + * Type: Minion • Wraith + * Strength: 4 + * Vitality: 2 + * Site: 3 + * Game Text: Enduring. Each time the Free Peoples player assigns Covetous Wisp to a companion, you may spot another + * [WRAITH] Wraith and remove (2) to add a burden. + */ +public class Card16_003 extends AbstractMinion { + public Card16_003() { + super(3, 8, 2, 3, Race.WRAITH, Culture.WRAITH, "Covetous Wisp", true); + addKeyword(Keyword.ENDURING); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) { + if (TriggerConditions.assignedAgainst(game, effectResult, Side.FREE_PEOPLE, CardType.COMPANION, self) + && PlayConditions.canSpot(game, Filters.not(self), Culture.WRAITH, Race.WRAITH) + && game.getGameState().getTwilightPool() >= 2) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendCost( + new RemoveTwilightEffect(2)); + action.appendEffect( + new AddBurdenEffect(self, 1)); + return Collections.singletonList(action); + } + return null; + } +}