"Orthanc Shaman"

This commit is contained in:
marcins78
2013-01-29 17:50:13 +00:00
parent 27f70c2b60
commit 571ed0041d

View File

@@ -0,0 +1,47 @@
package com.gempukku.lotro.cards.set20.isengard;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.SelfExertEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPreventCardEffect;
import com.gempukku.lotro.common.Culture;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Race;
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.effects.WoundCharactersEffect;
import com.gempukku.lotro.logic.timing.Effect;
import java.util.Collections;
import java.util.List;
/**
* 3
* Orthanc Shaman
* Isengard Minion • Orc
* 6 3 4
* Lurker.
* Response: If an Uruk-hai is about to take a wound, exert this minion to prevent that wound.
*/
public class Card20_211 extends AbstractMinion {
public Card20_211() {
super(3, 6, 3, 4, Race.ORC, Culture.ISENGARD, "Orthanc Shaman");
addKeyword(Keyword.LURKER);
}
@Override
public List<? extends ActivateCardAction> getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) {
if (TriggerConditions.isGettingWounded(effect, game, Race.URUK_HAI)
&& PlayConditions.canSelfExert(self, game)) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new SelfExertEffect(action, self));
action.appendEffect(
new ChooseAndPreventCardEffect(self, (WoundCharactersEffect) effect, playerId, "Choose an Uruk-hai", Race.URUK_HAI));
return Collections.singletonList(action);
}
return null;
}
}