"Siegecraft"

This commit is contained in:
marcins78@gmail.com
2011-11-10 13:07:17 +00:00
parent 627eb9149d
commit 8ca1daa9f1

View File

@@ -0,0 +1,42 @@
package com.gempukku.lotro.cards.set7.sauron;
import com.gempukku.lotro.cards.AbstractResponseEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.cards.effects.AddUntilStartOfPhaseModifierEffect;
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.modifiers.KeywordModifier;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Sauron
* Twilight Cost: 4
* Type: Event • Response
* Game Text: If your [SAURON] Orc wins a skirmish, make all your [SAURON] Orc fierce until the regroup phase.
*/
public class Card7_312 extends AbstractResponseEvent {
public Card7_312() {
super(Side.SHADOW, 4, Culture.SAURON, "Siegecraft");
}
@Override
public List<PlayEventAction> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (PlayConditions.winsSkirmish(game, effectResult, Filters.owner(playerId), Culture.SAURON, Race.ORC)
&& checkPlayRequirements(playerId, game, self, 0, false)) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new AddUntilStartOfPhaseModifierEffect(
new KeywordModifier(self, Filters.and(Filters.owner(playerId), Culture.SAURON, Race.ORC), Keyword.FIERCE), Phase.REGROUP));
return Collections.singletonList(action);
}
return null;
}
}