"Mablung"

This commit is contained in:
marcins78@gmail.com
2012-01-26 16:31:09 +00:00
parent 9b7e7a9b58
commit 8ac9018884

View File

@@ -0,0 +1,48 @@
package com.gempukku.lotro.cards.set15.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
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.effects.ChooseAndWoundCharactersEffect;
import java.util.Collections;
import java.util.List;
/**
* Set: The Hunters
* Side: Free
* Culture: Gondor
* Twilight Cost: 2
* Type: Companion • Man
* Strength: 5
* Vitality: 3
* Resistance: 6
* Game Text: Ranger. Hunter 1. (While skirmishing a non-hunter character, this character is strength +1.)
* Skirmish: Exert Mablung to wound a roaming minion he is skirmishing.
*/
public class Card15_063 extends AbstractCompanion {
public Card15_063() {
super(2, 5, 3, 6, Culture.GONDOR, Race.MAN, null, "Mablung", true);
addKeyword(Keyword.RANGER);
addKeyword(Keyword.HUNTER, 1);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(self));
action.appendEffect(
new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION, Keyword.ROAMING, Filters.inSkirmishAgainst(self)));
return Collections.singletonList(action);
}
return null;
}
}