Easterling Schemer

This commit is contained in:
marcins78
2013-11-20 16:37:39 +00:00
parent b2d9321e0f
commit 42f570a754
4 changed files with 108 additions and 6 deletions

View File

@@ -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'
}

View File

@@ -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<? extends Action> 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;
}
}

View File

@@ -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
* <p/>
* 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<OptionalTriggerAction> 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<? extends Action> 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;
}
}

View File

@@ -467,4 +467,5 @@
20S478
20S479
20S480
20S481
20S481
20S482