"Unyielding Goblin"

This commit is contained in:
marcins78@gmail.com
2011-12-05 12:38:33 +00:00
parent 5bf826aa99
commit b98fc6bdc8

View File

@@ -0,0 +1,47 @@
package com.gempukku.lotro.cards.set11.orc;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
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.actions.ActivateCardAction;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
import java.util.List;
/**
* Set: Shadows
* Side: Shadow
* Culture: Orc
* Twilight Cost: 2
* Type: Minion • Orc
* Strength: 5
* Vitality: 2
* Site: 4
* Game Text: Skirmish: If this minion is at an underground site, exert it to exert a companion it is skirmishing.
*/
public class Card11_142 extends AbstractMinion {
public Card11_142() {
super(2, 5, 2, 4, Race.ORC, Culture.ORC, "Unyielding Goblin");
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0)
&& PlayConditions.location(game, Keyword.UNDERGROUND)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, CardType.COMPANION, Filters.inSkirmishAgainst(self)));
return Collections.singletonList(action);
}
return null;
}
}