"Mind and Body"

This commit is contained in:
marcins78@gmail.com
2011-11-06 15:27:29 +00:00
parent 49bbd22f0c
commit 37d0caae1c

View File

@@ -0,0 +1,41 @@
package com.gempukku.lotro.cards.set7.wraith;
import com.gempukku.lotro.cards.AbstractResponseEvent;
import com.gempukku.lotro.cards.actions.PlayEventAction;
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.effects.WoundCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
/**
* Set: The Return of the King
* Side: Shadow
* Culture: Wraith
* Twilight Cost: 1
* Type: Event • Response
* Game Text: If a Nazgul kills a character, wound each character bearing a [WRAITH] condition.
*/
public class Card7_183 extends AbstractResponseEvent {
public Card7_183() {
super(Side.SHADOW, 1, Culture.WRAITH, "Mind and Body");
}
@Override
public List<PlayEventAction> getOptionalAfterActions(String playerId, LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (effectResult.getType() == EffectResult.Type.KILL
&& game.getGameState().getCurrentPhase() == Phase.SKIRMISH
&& Filters.filterActive(game.getGameState(), game.getModifiersQuerying(), Race.NAZGUL, Filters.inSkirmish).size() > 0
&& checkPlayRequirements(playerId, game, self, 0)) {
PlayEventAction action = new PlayEventAction(self);
action.appendEffect(
new WoundCharactersEffect(self, Filters.or(CardType.COMPANION, CardType.ALLY, CardType.MINION), Filters.hasAttached(Culture.WRAITH, CardType.CONDITION)));
return Collections.singletonList(action);
}
return null;
}
}