20_374
This commit is contained in:
@@ -372,7 +372,7 @@ var set20 = {
|
||||
'20_371': 'http://lotrtcg.org/coreset/sauron/orcstalker(r1).png',
|
||||
'20_372': 'http://lotrtcg.org/coreset/sauron/orcvillain.png',
|
||||
'20_373': 'http://lotrtcg.org/coreset/sauron/sauronsforces(r1).png',
|
||||
'20_374': 'http://lotrtcg.org/coreset/sauron/shadowintheeast.png',
|
||||
'20_374': 'http://lotrtcg.org/coreset/sauron/shadowintheeast(r1).png',
|
||||
'20_375': 'http://lotrtcg.org/coreset/sauron/threatofmordor.png',
|
||||
'20_376': 'http://lotrtcg.org/coreset/sauron/threateningologhai.png',
|
||||
'20_377': 'http://lotrtcg.org/coreset/sauron/trollofgorgoroth.png',
|
||||
|
||||
@@ -3,26 +3,28 @@ package com.gempukku.lotro.cards.set20.sauron;
|
||||
import com.gempukku.lotro.cards.AbstractEvent;
|
||||
import com.gempukku.lotro.cards.PlayConditions;
|
||||
import com.gempukku.lotro.cards.actions.PlayEventAction;
|
||||
import com.gempukku.lotro.cards.modifiers.evaluator.AddEvaluator;
|
||||
import com.gempukku.lotro.cards.modifiers.evaluator.CountFPCulturesEvaluator;
|
||||
import com.gempukku.lotro.cards.modifiers.evaluator.MultiplyEvaluator;
|
||||
import com.gempukku.lotro.common.CardType;
|
||||
import com.gempukku.lotro.common.Culture;
|
||||
import com.gempukku.lotro.common.Phase;
|
||||
import com.gempukku.lotro.common.Side;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.game.state.GameState;
|
||||
import com.gempukku.lotro.game.state.LotroGame;
|
||||
import com.gempukku.lotro.logic.effects.AddThreatsEffect;
|
||||
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;
|
||||
import com.gempukku.lotro.logic.modifiers.evaluator.Evaluator;
|
||||
|
||||
/**
|
||||
* 2
|
||||
* 1
|
||||
* Shadow in the East
|
||||
* Sauron Event • Maneuver
|
||||
* Spot a [Sauron] minion to add a threat for each Free Peoples culture less than 4 that you can spot.
|
||||
* Event • Maneuver
|
||||
* Spot a [Sauron] minion to add a threat. Add an additional threat for each Free Peoples culture less than 4 you can spot.
|
||||
* http://lotrtcg.org/coreset/sauron/shadowintheeast(r1).png
|
||||
*/
|
||||
public class Card20_374 extends AbstractEvent {
|
||||
public Card20_374() {
|
||||
super(Side.SHADOW, 2, Culture.SAURON, "Shadow in the East", Phase.MANEUVER);
|
||||
super(Side.SHADOW, 1, Culture.SAURON, "Shadow in the East", Phase.MANEUVER);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -32,10 +34,18 @@ public class Card20_374 extends AbstractEvent {
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
|
||||
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, final PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
|
||||
PlayEventAction action = new PlayEventAction(self);
|
||||
action.appendEffect(
|
||||
new AddThreatsEffect(playerId, self, new AddEvaluator(4, new MultiplyEvaluator(-1, new CountFPCulturesEvaluator(self.getOwner())))));
|
||||
new AddThreatsEffect(playerId, self,
|
||||
new Evaluator() {
|
||||
private Evaluator _eval = new CountFPCulturesEvaluator(self.getOwner());
|
||||
|
||||
@Override
|
||||
public int evaluateExpression(GameState gameState, ModifiersQuerying modifiersQuerying, PhysicalCard cardAffected) {
|
||||
return 1 + Math.max(0, 4 - _eval.evaluateExpression(gameState, modifiersQuerying, cardAffected));
|
||||
}
|
||||
}));
|
||||
return action;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user