"Last Throw"

This commit is contained in:
marcins78@gmail.com
2011-11-16 16:36:56 +00:00
parent 596cc6b529
commit d46f794383

View File

@@ -0,0 +1,44 @@
package com.gempukku.lotro.cards.set10.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.AddUntilEndOfTurnModifierEffect;
import com.gempukku.lotro.cards.modifiers.MoveLimitModifier;
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.filters.Filters;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
/**
* Set: Mount Doom
* Side: Free
* Culture: Gondor
* Twilight Cost: 5
* Type: Event • Regroup
* Game Text: If no opponent controls a site, spot 2 [GONDOR] Men to make the move limit +1 for this turn.
*/
public class Card10_034 extends AbstractEvent {
public Card10_034() {
super(Side.FREE_PEOPLE, 5, Culture.GONDOR, "Last Throw", Phase.REGROUP);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier, ignoreRoamingPenalty)
&& !PlayConditions.canSpot(game, Filters.siteControlledByShadowPlayer(playerId))
&& PlayConditions.canSpot(game, 2, Culture.GONDOR, Race.MAN);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new AddUntilEndOfTurnModifierEffect(
new MoveLimitModifier(self, 1)));
return action;
}
}