From 507eeb84af2619e30a0e972be51ccd64bd0d0d9d Mon Sep 17 00:00:00 2001 From: marcins78 Date: Tue, 19 Mar 2013 11:57:01 +0000 Subject: [PATCH] 20_477 --- .../src/main/web/js/gemp-019/set20.js | 3 +- .../lotro/cards/set20/shire/Card20_477.java | 59 +++++++++++++++++++ .../src/main/resources/set20-rarity.txt | 3 +- 3 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/shire/Card20_477.java diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js index 2d3e0bd60..a457d8425 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js @@ -473,5 +473,6 @@ var set20 = { '20_473': 'http://lotrtcg.org/coreset/rohan/mightofthemark.png', '20_474': 'http://lotrtcg.org/coreset/rohan/notadefeat.png', '20_475': 'http://lotrtcg.org/coreset/shire/halflingdexterity.png', - '20_476': 'http://lotrtcg.org/coreset/isengard/stmtn(r1).png' + '20_476': 'http://lotrtcg.org/coreset/isengard/stmtn(r1).png', + '20_477': 'http://lotrtcg.org/coreset/shire/dimpleboffinbots(r1).png' } \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/shire/Card20_477.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/shire/Card20_477.java new file mode 100644 index 000000000..368c1ecac --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/shire/Card20_477.java @@ -0,0 +1,59 @@ +package com.gempukku.lotro.cards.set20.shire; + +import com.gempukku.lotro.cards.AbstractAlly; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect; +import com.gempukku.lotro.cards.effects.SelfExertEffect; +import com.gempukku.lotro.cards.modifiers.OverwhelmedByMultiplierModifier; +import com.gempukku.lotro.common.*; +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.ChooseActiveCardEffect; +import com.gempukku.lotro.logic.timing.Action; + +import java.util.Collections; +import java.util.List; + +/** + * 1 + * •Dimple Boffin, Bounder of the Shire + * Ally • Hobbit • Shire + * 2 2 + * To play, spot 2 Hobbit companions. + * Skirmish: Exert this ally to prevent a Hobbit from being overwhelmed unless that Hobbit's strength is tripled. + * http://lotrtcg.org/coreset/shire/dimpleboffinbots(r1).png + */ +public class Card20_477 extends AbstractAlly { + public Card20_477() { + super(1, null, 0, 2, 2, Race.HOBBIT, Culture.SHIRE, "Dimple Boffin", "Bounder of the Shire", true); + addKeyword(Keyword.SHIRE); + } + + @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, CardType.COMPANION, Race.HOBBIT); + } + + @Override + protected List getExtraInPlayPhaseActions(String playerId, LotroGame game, final PhysicalCard self) { + if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self) + && PlayConditions.canSelfExert(self, game)) { + final ActivateCardAction action= new ActivateCardAction(self); + action.appendCost( + new SelfExertEffect(action, self)); + action.appendEffect( + new ChooseActiveCardEffect(self, playerId, "Choose a Hobbit", Race.HOBBIT) { + @Override + protected void cardSelected(LotroGame game, PhysicalCard card) { + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new OverwhelmedByMultiplierModifier(self, card, 3))); + } + }); + return Collections.singletonList(action); + } + return null; + } +} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt b/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt index 62eec6ce9..a4c9bc28a 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt @@ -472,4 +472,5 @@ 20S473 20S474 20S475 -20S476 \ No newline at end of file +20S476 +20S477 \ No newline at end of file