This commit is contained in:
marcins78@gmail.com
2011-10-16 19:34:28 +00:00
parent 6c4c4b66c4
commit 1217bed9bf

View File

@@ -0,0 +1,54 @@
package com.gempukku.lotro.cards.set4.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.PreventableEffect;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Signet;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.GameUtils;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Free
* Culture: Shire
* Twilight Cost: 1
* Type: Companion • Hobbit
* Strength: 3
* Vitality: 4
* Resistance: 6
* Signet: Frodo
* Game Text: Skirmish: Add a burden to discard Pippin. Any Shadow player may remove (2) to prevent this.
*/
public class Card4_314 extends AbstractCompanion {
public Card4_314() {
super(1, 3, 4, Culture.SHIRE, Race.HOBBIT, Signet.FRODO, "Pippin", true);
}
@Override
protected List<? extends Action> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new AddBurdenEffect(self, 1));
action.appendEffect(
new PreventableEffect(action,
new DiscardCardsFromPlayEffect(self, self),
GameUtils.getOpponents(game, playerId),
new RemoveTwilightEffect(2)));
return Collections.singletonList(action);
}
return null;
}
}