"Regiment of Haradrim"

This commit is contained in:
marcins78@gmail.com
2011-10-12 16:10:55 +00:00
parent 621b2bac5e
commit b0f7cda862

View File

@@ -0,0 +1,59 @@
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: 8
* Type: Minion • Man
* Strength: 16
* Vitality: 4
* Site: 4
* Game Text: Southron. To play, spot a [RAIDER] Man. Regroup: Exert Regiment of Haradrim twice to take control of
* a site.
*/
public class Card4_244 extends AbstractMinion {
public Card4_244() {
super(8, 16, 4, 4, Race.MAN, Culture.RAIDER, "Regiment of Haradrim", 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);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new TakeControlOfASiteEffect(self, playerId));
return Collections.singletonList(action);
}
return null;
}
}