"Great Beasts"

This commit is contained in:
marcins78@gmail.com
2011-11-03 12:06:47 +00:00
parent f6c6fb3c76
commit 734ad58a04

View File

@@ -0,0 +1,50 @@
package com.gempukku.lotro.cards.set7.raider;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfTurnModifierEffect;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
import com.gempukku.lotro.cards.modifiers.MoveLimitModifier;
import com.gempukku.lotro.common.*;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Raider
* Twilight Cost: 0
* Type: Condition • Support Area
* Game Text: To play, spot a [RAIDER] Man. Regroup: Remove (9) and spot 3 [RAIDER] Men to make the move limit -1.
*/
public class Card7_149 extends AbstractPermanent {
public Card7_149() {
super(Side.SHADOW, 0, CardType.CONDITION, Culture.RAIDER, Zone.SUPPORT, "Great Beasts");
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Culture.RAIDER, Race.MAN);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.REGROUP, self, 9)
&& PlayConditions.canSpot(game, 3, Culture.RAIDER, Race.MAN)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new RemoveTwilightEffect(9));
action.appendEffect(
new AddUntilEndOfTurnModifierEffect(
new MoveLimitModifier(self, -1)));
return Collections.singletonList(action);
}
return null;
}
}