"Corpse Lights"

This commit is contained in:
marcins78@gmail.com
2011-10-22 17:54:24 +00:00
parent 9e09d23040
commit 92c83060cb
2 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,51 @@
package com.gempukku.lotro.cards.set6.sauron;
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.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.cards.modifiers.evaluator.CountSpottableEvaluator;
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: Ents of Fangorn
* Side: Shadow
* Culture: Sauron
* Twilight Cost: 3
* Type: Minion • Wraith
* Strength: 7
* Vitality: 2
* Site: 4
* Game Text: Twilight. Skirmish: Exert this minion to make a [SAURON] or twilight minion strength +1 for each twilight
* minion you can spot.
*/
public class Card6_099 extends AbstractMinion {
public Card6_099() {
super(3, 7, 2, 4, Race.WRAITH, Culture.SAURON, "Corpse Lights");
addKeyword(Keyword.TWILIGHT);
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game.getGameState(), Phase.SKIRMISH, self, 0)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ExertCharactersEffect(self, self));
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new CountSpottableEvaluator(CardType.MINION, Keyword.TWILIGHT),
CardType.MINION, Filters.or(Culture.SAURON, Keyword.TWILIGHT)));
return Collections.singletonList(action);
}
return null;
}
}

View File

@@ -1,7 +1,7 @@
package com.gempukku.lotro.common;
public enum Race implements Filterable {
BALROG("Balrog"), CREATURE("Creature"),
BALROG("Balrog"), CREATURE("Creature"), WRAITH("Wraith"),
ELF("Elf"), HOBBIT("Hobbit"), DWARF("Dwarf"), MAN("Man"), WIZARD("Wizard"),
URUK_HAI("Uruk-Hai"), NAZGUL("Nazgul"), ORC("Orc"), TROLL("Troll"), ENT("Ent");