"Bilbo", "Well-Preserved Hobbit"

This commit is contained in:
marcins78
2013-02-07 18:01:19 +00:00
parent 0090de981b
commit 3b0aa2892f
2 changed files with 46 additions and 1 deletions

View File

@@ -0,0 +1,45 @@
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.SelfExertEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
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.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* 2
* •Bilbo, Well-Preserved Hobbit
* Shire Ally • Hobbit • Shire
* 3 3
* Fellowship: Exert Bilbo and discard a pipeweed possession to discard a Shadow condition.
*/
public class Card20_382 extends AbstractAlly {
public Card20_382() {
super(2, null, 0, 3, 3, Race.HOBBIT, Culture.SHIRE, "Bilbo", "Well-Preserved Hobbit", true);
addKeyword(Keyword.SHIRE);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)
&& PlayConditions.canSelfExert(self, game)
&& PlayConditions.canDiscardFromPlay(self, game, Keyword.PIPEWEED, CardType.POSSESSION)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(action, self));
action.appendCost(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Keyword.PIPEWEED, CardType.POSSESSION));
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Side.SHADOW, CardType.CONDITION));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -20,7 +20,7 @@ public enum Keyword implements Filterable {
PIPEWEED("Pipeweed", true),
LOTHLORIEN("Lothlorien", true, false, false), RIVENDELL("Rivendell", true, false, false), BREE("Bree", true, false, false),
EDORAS("Edoras", true, false, false),
EDORAS("Edoras", true, false, false), SHIRE("Shire", true, false, false),
DAMAGE("Damage", true, true), DEFENDER("Defender", true, true), AMBUSH("Ambush", true, true), FIERCE("Fierce", true), ARCHER("Archer", true),
UNHASTY("Unhasty", true), MUSTER("Muster", true), TOIL("Toil", true, true), LURKER("Lurker", true), CUNNING("Cunning", true),