"Morgul Predator"

This commit is contained in:
marcins78@gmail.com
2011-11-06 16:52:48 +00:00
parent 9f06454506
commit e003db7cbd
2 changed files with 56 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ import com.gempukku.lotro.logic.effects.AddThreatsEffect;
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.DrawCardOrPutIntoHandResult;
import java.util.Collections;
import java.util.List;
@@ -40,10 +41,13 @@ public class Card7_195 extends AbstractPermanent {
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (effectResult.getType() == EffectResult.Type.DRAW_CARD_OR_PUT_INTO_HAND
&& game.getGameState().getCurrentPhase() != Phase.REGROUP) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new AddThreatsEffect(self.getOwner(), self, 1));
return Collections.singletonList(action);
DrawCardOrPutIntoHandResult drawResult = (DrawCardOrPutIntoHandResult) effectResult;
if (drawResult.getPlayerId().equals(game.getGameState().getCurrentPlayerId())) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new AddThreatsEffect(self.getOwner(), self, 1));
return Collections.singletonList(action);
}
}
return null;
}

View File

@@ -0,0 +1,48 @@
package com.gempukku.lotro.cards.set7.wraith;
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.common.Culture;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Race;
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: The Return of the King
* Side: Shadow
* Culture: Wraith
* Twilight Cost: 5
* Type: Minion • Orc
* Strength: 11
* Vitality: 3
* Site: 4
* Game Text: Skirmish: Exert this minion to make a Nazgul or [WRAITH] Orc strength +1.
*/
public class Card7_196 extends AbstractMinion {
public Card7_196() {
super(5, 11, 3, 4, Race.ORC, Culture.WRAITH, "Morgul Predator");
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, 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, 1, Filters.or(Race.NAZGUL, Filters.and(Culture.WRAITH, Race.ORC))));
return Collections.singletonList(action);
}
return null;
}
}