"War Towers"
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
package com.gempukku.lotro.cards.set7.raider;
|
||||||
|
|
||||||
|
import com.gempukku.lotro.cards.AbstractEvent;
|
||||||
|
import com.gempukku.lotro.cards.PlayConditions;
|
||||||
|
import com.gempukku.lotro.cards.actions.PlayEventAction;
|
||||||
|
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.filters.Filters;
|
||||||
|
import com.gempukku.lotro.game.PhysicalCard;
|
||||||
|
import com.gempukku.lotro.game.state.LotroGame;
|
||||||
|
import com.gempukku.lotro.logic.effects.AddThreatsEffect;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set: The Return of the King
|
||||||
|
* Side: Shadow
|
||||||
|
* Culture: Raider
|
||||||
|
* Twilight Cost: 1
|
||||||
|
* Type: Event • Maneuver
|
||||||
|
* Game Text: Spot a [RAIDER] minion to add a threat. Add an additional threat for each companion over 4.
|
||||||
|
*/
|
||||||
|
public class Card7_173 extends AbstractEvent {
|
||||||
|
public Card7_173() {
|
||||||
|
super(Side.SHADOW, 1, Culture.RAIDER, "War Towers", Phase.MANEUVER);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||||
|
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
|
||||||
|
&& PlayConditions.canSpot(game, Culture.RAIDER, CardType.MINION);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
|
||||||
|
PlayEventAction action = new PlayEventAction(self);
|
||||||
|
int companionCount = Filters.countActive(game.getGameState(), game.getModifiersQuerying(), CardType.COMPANION);
|
||||||
|
int threats = 1 + (Math.min(0, companionCount - 4));
|
||||||
|
action.appendEffect(
|
||||||
|
new AddThreatsEffect(playerId, self, threats));
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user