diff --git a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js index a3cf17892..28bf9d107 100644 --- a/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js +++ b/gemp-lotr/gemp-lotr-async/src/main/web/js/gemp-019/set20.js @@ -468,5 +468,6 @@ var set20 = { '20_478': 'http://lotrtcg.org/coreset/isengard/torturedandmutilated(r2).jpg', '20_479': 'http://lotrtcg.org/coreset/shire/crossingthethreshold(r2).jpg', '20_480': 'http://lotrtcg.org/coreset/fallenrealms/easterlinggrunt(r3).jpg', - '20_481': 'http://lotrtcg.org/coreset/fallenrealms/easterlingplotter(r3).jpg' + '20_481': 'http://lotrtcg.org/coreset/fallenrealms/easterlingplotter(r3).jpg', + '20_482': 'http://lotrtcg.org/coreset/fallenrealms/easterlingschemer(r3).jpg' } \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_481.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_481.java index 5e225817b..1ec9e483a 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_481.java +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_481.java @@ -3,19 +3,21 @@ package com.gempukku.lotro.cards.set20.fallenRealms; import com.gempukku.lotro.cards.AbstractMinion; import com.gempukku.lotro.cards.PlayConditions; import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect; import com.gempukku.lotro.cards.effects.PreventableEffect; -import com.gempukku.lotro.common.CardType; -import com.gempukku.lotro.common.Culture; -import com.gempukku.lotro.common.Keyword; -import com.gempukku.lotro.common.Race; +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.GameUtils; +import com.gempukku.lotro.logic.actions.ActivateCardAction; import com.gempukku.lotro.logic.actions.OptionalTriggerAction; import com.gempukku.lotro.logic.actions.SubAction; import com.gempukku.lotro.logic.effects.AddThreatsEffect; import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.effects.RemoveThreatsEffect; +import com.gempukku.lotro.logic.modifiers.StrengthModifier; +import com.gempukku.lotro.logic.timing.Action; import com.gempukku.lotro.logic.timing.Effect; import com.gempukku.lotro.logic.timing.EffectResult; import com.gempukku.lotro.logic.timing.results.PlayCardResult; @@ -63,4 +65,19 @@ public class Card20_481 extends AbstractMinion { } return null; } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0) + && PlayConditions.canRemoveThreat(game, self, 1)) { + ActivateCardAction action =new ActivateCardAction(self); + action.appendCost( + new RemoveThreatsEffect(self, 1)); + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new StrengthModifier(self, self, 2))); + return Collections.singletonList(action); + } + return null; + } } diff --git a/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_482.java b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_482.java new file mode 100644 index 000000000..8f8e94f25 --- /dev/null +++ b/gemp-lotr/gemp-lotr-cards/src/main/java/com/gempukku/lotro/cards/set20/fallenRealms/Card20_482.java @@ -0,0 +1,83 @@ +package com.gempukku.lotro.cards.set20.fallenRealms; + +import com.gempukku.lotro.cards.AbstractMinion; +import com.gempukku.lotro.cards.PlayConditions; +import com.gempukku.lotro.cards.TriggerConditions; +import com.gempukku.lotro.cards.effects.AddBurdenEffect; +import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect; +import com.gempukku.lotro.cards.effects.PreventableEffect; +import com.gempukku.lotro.cards.effects.RemoveBurdenEffect; +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.GameUtils; +import com.gempukku.lotro.logic.actions.ActivateCardAction; +import com.gempukku.lotro.logic.actions.OptionalTriggerAction; +import com.gempukku.lotro.logic.actions.SubAction; +import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect; +import com.gempukku.lotro.logic.modifiers.StrengthModifier; +import com.gempukku.lotro.logic.timing.Action; +import com.gempukku.lotro.logic.timing.Effect; +import com.gempukku.lotro.logic.timing.EffectResult; +import com.gempukku.lotro.logic.timing.results.PlayCardResult; + +import java.util.Collections; +import java.util.List; + +/** + * ❸ Easterling Schemer [Fal] + * Minion • Man + * Strength: 6 Vitality: 1 Roaming: 4 + * Easterling. Toil 1. (When you play this card, you may reduce its twilight cost by 1. You do this by exerting one of your characters of the same culture as this card.) + * When you play this minino using toil, you may spot another Easterling to wound a companion. The Free Peoples player may add a burden to prevent this. + * Skirmish: Remove a burden to make this minion strength +2 + *

+ * http://lotrtcg.org/coreset/fallenrealms/easterlingschemer(r3).jpg + */ +public class Card20_482 extends AbstractMinion { + public Card20_482() { + super(3, 6, 1, 4, Race.MAN, Culture.FALLEN_REALMS, "Easterling Schemer"); + addKeyword(Keyword.EASTERLING); + addKeyword(Keyword.TOIL, 1); + } + + @Override + public List getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) { + if (TriggerConditions.played(game, effectResult, self) && ((PlayCardResult) effectResult).isPaidToil() + && PlayConditions.canSpot(game, Filters.not(self), Keyword.EASTERLING)) { + OptionalTriggerAction action = new OptionalTriggerAction(self); + action.appendEffect( + new PreventableEffect( + action, new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.COMPANION) { + @Override + public String getText(LotroGame game) { + return "Wound a companion"; + } + }, GameUtils.getOpponents(game, playerId), + new PreventableEffect.PreventionCost() { + @Override + public Effect createPreventionCostForPlayer(SubAction subAction, String playerId) { + return new AddBurdenEffect(playerId, self, 1); + } + })); + return Collections.singletonList(action); + } + return null; + } + + @Override + protected List getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) { + if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.SKIRMISH, self, 0) + && PlayConditions.canRemoveBurdens(game, self, 1)) { + ActivateCardAction action =new ActivateCardAction(self); + action.appendCost( + new RemoveBurdenEffect(playerId, self, 1)); + action.appendEffect( + new AddUntilEndOfPhaseModifierEffect( + new StrengthModifier(self, self, 2))); + return Collections.singletonList(action); + } + return null; + } +} diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt b/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt index 7d1e99240..81e4ba58f 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/set20-rarity.txt @@ -467,4 +467,5 @@ 20S478 20S479 20S480 -20S481 \ No newline at end of file +20S481 +20S482 \ No newline at end of file