"Bilbo, Expert Burglar"
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
package com.gempukku.lotro.cards.set30.shire;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractCompanion;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddBurdenEffect;
|
||||||
|
import com.gempukku.lotro.cards.effects.CancelSkirmishEffect;
|
||||||
|
import com.gempukku.lotro.cards.TriggerConditions;
|
||||||
|
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
|
||||||
|
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.ActivateCardAction;
|
||||||
|
import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
|
||||||
|
import com.gempukku.lotro.logic.effects.ChooseAndDiscardCardsFromHandEffect;
|
||||||
|
import com.gempukku.lotro.logic.effects.DrawCardsEffect;
|
||||||
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: Main Deck
|
||||||
|
* Side: Free
|
||||||
|
* Culture: Shire
|
||||||
|
* Twilight Cost: 0
|
||||||
|
* Type: Companion • Hobbit
|
||||||
|
* Strength: 3
|
||||||
|
* Vitality: 4
|
||||||
|
* Resistance: 8
|
||||||
|
* Game Text: Each time Bilbo wins a skirmish, you may draw 3 cards and then discard 2 cards from hand.
|
||||||
|
* Skirmish: Add 2 doubts to cancel a skirmish involving Gollum.
|
||||||
|
*/
|
||||||
|
public class Card30_043 extends AbstractCompanion {
|
||||||
|
public Card30_043() {
|
||||||
|
super(0, 3, 4, 8, Culture.SHIRE, Race.HOBBIT, null, "Bilbo", "Expert Burglar", true);
|
||||||
|
addKeyword(Keyword.BURGLAR);
|
||||||
|
addKeyword(Keyword.CAN_START_WITH_RING);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
|
if (TriggerConditions.winsSkirmish(game, effectResult, self)) {
|
||||||
|
OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||||
|
action.appendEffect(
|
||||||
|
new DrawCardsEffect(action, playerId, 3));
|
||||||
|
action.appendEffect(
|
||||||
|
new ChooseAndDiscardCardsFromHandEffect(action, playerId, false, 2));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
|
||||||
|
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)) {
|
||||||
|
ActivateCardAction action = new ActivateCardAction(self);
|
||||||
|
action.appendCost(
|
||||||
|
new AddBurdenEffect(self.getOwner(), self, 2));
|
||||||
|
action.appendEffect(
|
||||||
|
new CancelSkirmishEffect(CardType.COMPANION, Filters.inSkirmishAgainst(Filters.name("Gollum"))));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user