"Candle Corpses"

This commit is contained in:
marcins78@gmail.com
2012-02-07 15:21:53 +00:00
parent eadb4067a0
commit 2b29a57a4d

View File

@@ -0,0 +1,52 @@
package com.gempukku.lotro.cards.set16.wraith;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.RemoveTwilightEffect;
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.OptionalTriggerAction;
import com.gempukku.lotro.logic.effects.WoundCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.AssignmentResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Wraith Collection
* Side: Shadow
* Culture: Wraith
* Twilight Cost: 3
* Type: Minion • Wraith
* Strength: 8
* Vitality: 2
* Site: 3
* Game Text: Enduring. Each time the Free Peoples player assigns this minion to a companion, you may spot another
* [WRAITH] Wraith and remove (2) to wound that companion.
*/
public class Card16_002 extends AbstractMinion {
public Card16_002() {
super(3, 8, 2, 3, Race.WRAITH, Culture.WRAITH, "Candle Corpses");
addKeyword(Keyword.ENDURING);
}
@Override
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (TriggerConditions.assignedAgainst(game, effectResult, Side.FREE_PEOPLE, CardType.COMPANION, self)
&& PlayConditions.canSpot(game, Filters.not(self), Culture.WRAITH, Race.WRAITH)
&& game.getGameState().getTwilightPool() >= 2) {
AssignmentResult assignmentResult = (AssignmentResult) effectResult;
OptionalTriggerAction action = new OptionalTriggerAction(self);
action.appendCost(
new RemoveTwilightEffect(2));
action.appendEffect(
new WoundCharactersEffect(self, Filters.in(assignmentResult.getAgainst())));
return Collections.singletonList(action);
}
return null;
}
}