"Miruvore"

This commit is contained in:
marcins78@gmail.com
2012-02-29 14:24:47 +00:00
parent 9612982169
commit 0090975231

View File

@@ -0,0 +1,43 @@
package com.gempukku.lotro.cards.set18.elven;
import com.gempukku.lotro.cards.AbstractEvent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.actions.PlayEventAction;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Side;
import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.effects.AddThreatsEffect;
import com.gempukku.lotro.logic.effects.ChooseAndHealCharactersEffect;
/**
* Set: Treachery & Deceit
* Side: Free
* Culture: Elven
* Twilight Cost: 0
* Type: Event • Fellowship
* Game Text: Add 2 threats to heal an [ELVEN] companion.
*/
public class Card18_016 extends AbstractEvent {
public Card18_016() {
super(Side.FREE_PEOPLE, 0, Culture.ELVEN, "Miruvore", Phase.FELLOWSHIP);
}
@Override
public boolean checkPlayRequirements(String playerId, LotroGame game, PhysicalCard self, int withTwilightRemoved, int twilightModifier, boolean ignoreRoamingPenalty, boolean ignoreCheckingDeadPile) {
return super.checkPlayRequirements(playerId, game, self, withTwilightRemoved, twilightModifier, ignoreRoamingPenalty, ignoreCheckingDeadPile)
&& PlayConditions.canAddThreat(game, self, 2);
}
@Override
public PlayEventAction getPlayCardAction(String playerId, LotroGame game, PhysicalCard self, int twilightModifier, boolean ignoreRoamingPenalty) {
PlayEventAction action = new PlayEventAction(self);
action.appendCost(
new AddThreatsEffect(playerId, self, 2));
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, Culture.ELVEN, CardType.COMPANION));
return action;
}
}