"Hope Renewed"

This commit is contained in:
marcins78@gmail.com
2012-01-07 14:39:42 +00:00
parent 614c12815a
commit 750cea6a3f

View File

@@ -0,0 +1,45 @@
package com.gempukku.lotro.cards.set13.gondor;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.cards.effects.OptionalEffect;
import com.gempukku.lotro.cards.effects.ReinforceTokenEffect;
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;
/**
* Set: Bloodlines
* Side: Free
* Culture: Gondor
* Twilight Cost: 2
* Type: Event • Maneuver
* Game Text: Discard a [GONDOR] possession from play to discard a possession from play and you may reinforce
* a [GONDOR] token.
*/
public class Card13_070 extends AbstractEvent {
public Card13_070() {
super(Side.FREE_PEOPLE, 2, Culture.GONDOR, "Hope Renewed", Phase.MANEUVER);
}
@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.canDiscardFromPlay(self, game, Culture.GONDOR, CardType.POSSESSION);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendCost(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, Culture.GONDOR, CardType.POSSESSION));
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.POSSESSION));
action.appendEffect(
new OptionalEffect(action, playerId,
new ReinforceTokenEffect(self, playerId, Token.GONDOR)));
return action;
}
}