"Morgul Predator"
This commit is contained in:
@@ -12,6 +12,7 @@ import com.gempukku.lotro.logic.effects.AddThreatsEffect;
|
|||||||
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
|
import com.gempukku.lotro.logic.effects.DiscardCardsFromPlayEffect;
|
||||||
import com.gempukku.lotro.logic.timing.Action;
|
import com.gempukku.lotro.logic.timing.Action;
|
||||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||||
|
import com.gempukku.lotro.logic.timing.results.DrawCardOrPutIntoHandResult;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -40,10 +41,13 @@ public class Card7_195 extends AbstractPermanent {
|
|||||||
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
|
||||||
if (effectResult.getType() == EffectResult.Type.DRAW_CARD_OR_PUT_INTO_HAND
|
if (effectResult.getType() == EffectResult.Type.DRAW_CARD_OR_PUT_INTO_HAND
|
||||||
&& game.getGameState().getCurrentPhase() != Phase.REGROUP) {
|
&& game.getGameState().getCurrentPhase() != Phase.REGROUP) {
|
||||||
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
DrawCardOrPutIntoHandResult drawResult = (DrawCardOrPutIntoHandResult) effectResult;
|
||||||
action.appendEffect(
|
if (drawResult.getPlayerId().equals(game.getGameState().getCurrentPlayerId())) {
|
||||||
new AddThreatsEffect(self.getOwner(), self, 1));
|
RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||||
return Collections.singletonList(action);
|
action.appendEffect(
|
||||||
|
new AddThreatsEffect(self.getOwner(), self, 1));
|
||||||
|
return Collections.singletonList(action);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user