"Grown Suddenly Tall"

This commit is contained in:
marcins78@gmail.com
2011-10-07 13:29:35 +00:00
parent 9f93b001c6
commit 4f68bfa07e

View File

@@ -0,0 +1,43 @@
package com.gempukku.lotro.cards.set4.gandalf;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
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.effects.DiscardCardsFromPlayEffect;
/**
* Set: The Two Towers
* Side: Free
* Culture: Gandalf
* Twilight Cost: 5
* Type: Event
* Game Text: Spell. Fellowship: Spot Gandalf to discard all conditions.
*/
public class Card4_092 extends AbstractEvent {
public Card4_092() {
super(Side.FREE_PEOPLE, Culture.GANDALF, "Grown Suddenly Tall", Phase.FELLOWSHIP);
addKeyword(Keyword.SPELL);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.name("Gandalf"));
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new DiscardCardsFromPlayEffect(self, Filters.type(CardType.CONDITION)));
return action;
}
@Override
public int getTwilightCost() {
return 5;
}
}