"New-awakened"

This commit is contained in:
marcins78@gmail.com
2011-12-04 18:33:43 +00:00
parent 07850e5d50
commit 3bab10987a

View File

@@ -0,0 +1,40 @@
package com.gempukku.lotro.cards.set11.gandalf;
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.choose.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
/**
* Set: Shadows
* Side: Free
* Culture: Gandalf
* Twilight Cost: 6
* Type: Event • Fellowship
* Game Text: Spell. Toil 2. (For each [GANDALF] character you exert when playing this, its twilight cost is -2.)
* Spot a [GANDALF] Wizard to discard 2 conditions from play.
*/
public class Card11_038 extends AbstractEvent {
public Card11_038() {
super(Side.FREE_PEOPLE, 6, Culture.GANDALF, "New-awakened", Phase.FELLOWSHIP);
addKeyword(Keyword.SPELL);
addKeyword(Keyword.TOIL, 2);
}
@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.canSpot(game, Culture.GANDALF, Race.WIZARD);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 2, 2, CardType.CONDITION));
return action;
}
}