"Under Foot"

This commit is contained in:
marcins78@gmail.com
2011-11-17 11:11:30 +00:00
parent 8909cb9999
commit f2b7a04365
2 changed files with 57 additions and 1 deletions

View File

@@ -35,7 +35,8 @@ public class Card10_051 extends AbstractResponseEvent {
@Override
public List<PlayEventAction> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (PlayConditions.played(game, effectResult, CardType.POSSESSION, Side.FREE_PEOPLE)
&& PlayConditions.canSpot(game, Culture.RAIDER)) {
&& PlayConditions.canSpot(game, Culture.RAIDER)
&& checkPlayRequirements(playerId, game, self, 0, false)) {
PlayCardResult playResult = (PlayCardResult) effectResult;
final PhysicalCard playedCard = playResult.getPlayedCard();
PlayEventAction action = new PlayEventAction(self);

View File

@@ -0,0 +1,55 @@
package com.gempukku.lotro.cards.set10.raider;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ReconcileHandEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
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.effects.DiscardCardsFromPlayEffect;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: Mount Doom
* Side: Shadow
* Culture: Raider
* Twilight Cost: 1
* Type: Condition • Support Area
* Game Text: Shadow: If you have initiative, spot a [RAIDER] Man and discard this condition to reconcile your hand.
* Skirmish: Discard this condition to make a [RAIDER] Man strength +2.
*/
public class Card10_052 extends AbstractPermanent {
public Card10_052() {
super(Side.SHADOW, 1, CardType.CONDITION, Culture.RAIDER, Zone.SUPPORT, "Under Foot", true);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SHADOW, self, 0)
&& PlayConditions.hasInitiative(game, Side.SHADOW)
&& PlayConditions.canSpot(game, Culture.RAIDER, Race.MAN)
&& PlayConditions.canSelfDiscard(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new DiscardCardsFromPlayEffect(self, self));
action.appendEffect(
new ReconcileHandEffect(playerId));
return Collections.singletonList(action);
}
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)
&& PlayConditions.canSelfDiscard(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new DiscardCardsFromPlayEffect(self, self));
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId, 2, Culture.RAIDER, Race.MAN));
return Collections.singletonList(action);
}
return null;
}
}