"Still Needed"

This commit is contained in:
marcins78@gmail.com
2011-10-28 10:06:45 +00:00
parent b4f38354e9
commit 920fbbf970

View File

@@ -0,0 +1,46 @@
package com.gempukku.lotro.cards.set7.elven;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.common.Side;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.decisions.MultipleChoiceAwaitingDecision;
import com.gempukku.lotro.logic.effects.PlayoutDecisionEffect;
/**
* Set: The Return of the King
* Side: Free
* Culture: Elven
* Twilight Cost: 2
* Type: Event • Skirmish
* Game Text: Make an Elf strength +2. You may place this event on top of your draw deck.
*/
public class Card7_029 extends AbstractEvent {
public Card7_029() {
super(Side.FREE_PEOPLE, 2, Culture.ELVEN, "Still Needed", Phase.SKIRMISH);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, final LotroGame game, final PhysicalCard self, int twilightModifier) {
final PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, Race.ELF));
action.appendEffect(
new PlayoutDecisionEffect(game.getUserFeedback(), playerId,
new MultipleChoiceAwaitingDecision(1, "Do you want to place this even on top of your draw deck?", new String[]{"Yes", "No"}) {
@Override
protected void validDecisionMade(int index, String result) {
if (index == 0) {
action.skipDiscardPart();
game.getGameState().putCardOnTopOfDeck(self);
}
}
}));
return action;
}
}