"Desert Lancers"

This commit is contained in:
marcins78@gmail.com
2011-10-11 13:27:51 +00:00
parent 2ba07048ab
commit c688dab177
2 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,58 @@
package com.gempukku.lotro.cards.set4.raider;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.ExertCharactersEffect;
import com.gempukku.lotro.cards.effects.TakeControlOfASiteEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
import com.gempukku.lotro.filters.Filters;
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.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: The Two Towers
* Side: Shadow
* Culture: Raider
* Twilight Cost: 5
* Type: Minion • Man
* Strength: 11
* Vitality: 3
* Site: 4
* Game Text: Southron. To play, spot a [RAIDER] Man. Regroup: Exert Desert Lancers twice to take control of a site.
*/
public class Card4_217 extends AbstractMinion {
public Card4_217() {
super(4, 11, 3, 4, Race.MAN, Culture.RAIDER, "Desert Lancers", true);
addKeyword(Keyword.SOUTHRON);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int twilightModifier) {
return super.checkPlayRequirements(playerId, game, self, twilightModifier)
&& PlayConditions.canSpot(game, Filters.culture(Culture.RAIDER), Filters.race(Race.MAN));
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.REGROUP, self, 0)
&& PlayConditions.canExert(self, game, 2, Filters.sameCard(self))) {
ActivateCardAction action = new ActivateCardAction(self, Keyword.REGROUP);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new TakeControlOfASiteEffect(self, playerId));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -15,7 +15,7 @@ public enum Keyword {
BATTLEGROUND("Battleground", true),
DAMAGE("Damage", true, true), DEFENDER("Defender", true, true), FIERCE("Fierce", true), ARCHER("Archer", true), UNHASTY("Unhasty", true),
RANGER("Ranger", true), TRACKER("Tracker", true), MACHINE("Machine", true),
RANGER("Ranger", true), TRACKER("Tracker", true), MACHINE("Machine", true), SOUTHRON("Southron", true),
HAND_WEAPON("Hand Weapon"), ARMOR("Armor"), HELM("Helm"), MOUNT("Mount"), RANGED_WEAPON("Ranged Weapon"),
CLOAK("Cloak"), PIPE("Pipe"), PIPEWEED("Pipeweed"), SHIELD("Shield"), BRACERS("Bracers"), STAFF("Staff"), RING("Ring"),