From dd3aa285996d9cc5baa8ab490b58903f1cb018db Mon Sep 17 00:00:00 2001 From: "marcins78@gmail.com" Date: Tue, 6 Mar 2012 12:35:17 +0000 Subject: [PATCH] "One-Upsmanship" --- .../lotro/cards/set18/gandalf/Card18_023.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/gandalf/Card18_023.java diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/gandalf/Card18_023.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/gandalf/Card18_023.java new file mode 100644 index 000000000..9c2deb060 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set18/gandalf/Card18_023.java @@ -0,0 +1,41 @@ +package com.gempukku.lotro.cards.set18.gandalf; + +import com.gempukku.lotro.cards.AbstractEvent; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.actions.PlayEventAction; +import com.gempukku.lotro.cards.effects.RemoveBurdenEffect; +import com.gempukku.lotro.common.*; +import com.gempukku.lotro.filters.Filters; +import com.gempukku.lotro.game.PhysicalCard; +import com.gempukku.lotro.game.state.LotroGame; + +/** + * Set: Treachery & Deceit + * Side: Free + * Culture: Gandalf + * Twilight Cost: 2 + * Type: Event • Maneuver + * Game Text: Spell. Spot 2 pipeweed cards to remove a burden for each [GANDALF] Wizard you can spot. + */ +public class Card18_023 extends AbstractEvent { + public Card18_023() { + super(Side.FREE_PEOPLE, 2, Culture.GANDALF, "One-Upsmanship", Phase.MANEUVER); + addKeyword(Keyword.SPELL); + } + + @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.canSpot(game, 2, Keyword.PIPEWEED); + } + + @Override + public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) { + PlayEventAction action = new PlayEventAction(self); + int count = Filters.countActive(game.getGameState(), game.getModifiersQuerying(), Culture.GANDALF, Race.WIZARD); + if (count > 0) + action.appendEffect( + new RemoveBurdenEffect(playerId, self, count)); + return action; + } +}