"Savage Tactics"

This commit is contained in:
marcins78
2013-01-03 15:54:58 +00:00
parent 9a140f95f2
commit b75c380822

View File

@@ -0,0 +1,36 @@
package com.gempukku.lotro.cards.set20.dunland;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
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.effects.ChooseAndWoundCharactersEffect;
/**
* 1
* Savage Tactics
* Dunland Event • Maneuver
* Spot two [Dunland] Men to wound an unbound archer companion. If you control a site, wound that companion again.
*/
public class Card20_026 extends AbstractEvent {
public Card20_026() {
super(Side.SHADOW, 1, Culture.DUNLAND, "Savage Tactics", Phase.MANEUVER);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) {
return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
&& PlayConditions.canSpot(game, 2, Culture.DUNLAND, Race.MAN);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, PlayConditions.controllsSite(game, playerId) ? 2 : 1, Filters.unboundCompanion, Keyword.ARCHER));
return action;
}
}