"Watcher at Sarn Ford"

This commit is contained in:
marcins78@gmail.com
2012-03-07 12:08:07 +00:00
parent 141b091d4b
commit 435eb54f22
2 changed files with 58 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
package com.gempukku.lotro.cards.set18.gondor;
import com.gempukku.lotro.cards.AbstractCompanion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndExertCharactersEffect;
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.modifiers.StrengthModifier;
import java.util.Collections;
import java.util.List;
/**
* Set: Treachery & Deceit
* Side: Free
* Culture: Gondor
* Twilight Cost: 2
* Type: Companion • Man
* Strength: 5
* Vitality: 3
* Resistance: 8
* Game Text: Ranger. Skirmish: Exert a [GONDOR] Man with a resistance 6 or more to make that Man strength +3.
*/
public class Card18_059 extends AbstractCompanion {
public Card18_059() {
super(2, 5, 3, 8, Culture.GONDOR, Race.MAN, null, "Watcher at Sarn Ford", true);
addKeyword(Keyword.RANGER);
}
@Override
protected List<ActivateCardAction> getExtraInPlayPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
&& PlayConditions.canExert(self, game, Culture.GONDOR, Race.MAN, Filters.minResistance(6))) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Culture.GONDOR, Race.MAN, Filters.minResistance(6)) {
@Override
protected void forEachCardExertedCallback(PhysicalCard character) {
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new StrengthModifier(self, character, 3), Phase.SKIRMISH));
}
});
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -207,4 +207,6 @@
17_154,17_102
17_155,17_141
17_156,17_142
17_157,17_143
17_157,17_143
# Treachery & Deceit set
18_58,17_35