20_100
This commit is contained in:
@@ -97,7 +97,7 @@ var set20 = {
|
||||
'20_97': 'http://www.lotrtcg.org/coreset/elven/naryaerop(r2).jpg',
|
||||
'20_98': 'http://lotrtcg.org/coreset/elven/nenyaroa.jpg',
|
||||
'20_99': 'http://lotrtcg.org/coreset/elven/orophinls.jpg',
|
||||
'20_100': 'http://lotrtcg.org/coreset/elven/peeringforward.jpg',
|
||||
'20_100': 'http://www.lotrtcg.org/coreset/elven/peeringforward(r2).jpg',
|
||||
'20_101': 'http://lotrtcg.org/coreset/elven/phialofgaladriellidp.jpg',
|
||||
'20_102': 'http://lotrtcg.org/coreset/elven/pushbackthedarkness.jpg',
|
||||
'20_103': 'http://lotrtcg.org/coreset/elven/silentscouts.jpg',
|
||||
|
||||
@@ -4,23 +4,25 @@ import com.gempukku.lotro.cards.AbstractPermanent;
|
||||
import com.gempukku.lotro.cards.TriggerConditions;
|
||||
import com.gempukku.lotro.cards.effects.AddUntilStartOfPhaseModifierEffect;
|
||||
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.actions.RequiredTriggerAction;
|
||||
import com.gempukku.lotro.logic.actions.OptionalTriggerAction;
|
||||
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
|
||||
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
|
||||
import com.gempukku.lotro.logic.timing.EffectResult;
|
||||
import com.gempukku.lotro.logic.timing.results.RevealCardFromTopOfDeckResult;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 0
|
||||
* •Peering Forward
|
||||
* Elven Condition • Support Area
|
||||
* Each time you reveal an [Elven] card from the top of your draw deck, make a minion strength -1 until the regroup phase.
|
||||
* Condition • Support Area
|
||||
* Each time you reveal the top card of your draw deck, you may make a minion strength -1 until the regroup phase
|
||||
* (or -2 if you reveal an [Elven] card).
|
||||
* http://www.lotrtcg.org/coreset/elven/peeringforward(r2).jpg
|
||||
*/
|
||||
public class Card20_100 extends AbstractPermanent {
|
||||
public Card20_100() {
|
||||
@@ -28,14 +30,18 @@ public class Card20_100 extends AbstractPermanent {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||
public List<OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult, final PhysicalCard self) {
|
||||
if (TriggerConditions.revealedCardsFromTopOfDeck(effectResult, self.getOwner())) {
|
||||
RevealCardFromTopOfDeckResult revealedCardsResult = (RevealCardFromTopOfDeckResult) effectResult;
|
||||
List<RequiredTriggerAction> actions = new LinkedList<RequiredTriggerAction>();
|
||||
for (PhysicalCard revealedElvenCard : Filters.filter(revealedCardsResult.getRevealedCards(), game.getGameState(), game.getModifiersQuerying(), Culture.ELVEN)) {
|
||||
final RequiredTriggerAction action = new RequiredTriggerAction(self);
|
||||
List<OptionalTriggerAction> actions = new LinkedList<OptionalTriggerAction>();
|
||||
final Collection<PhysicalCard> revealedCards = revealedCardsResult.getRevealedCards();
|
||||
for (PhysicalCard revealedCard : revealedCards) {
|
||||
int penalty = revealedCard.getBlueprint().getCulture() == Culture.ELVEN ? -2 : -1;
|
||||
final OptionalTriggerAction action = new OptionalTriggerAction(self);
|
||||
action.setText("Give minion "+penalty+" strength");
|
||||
action.setTriggerIdentifier(self.getCardId() + "-" + revealedCard.getCardId());
|
||||
action.appendEffect(
|
||||
new ChooseActiveCardEffect(self, self.getOwner(), "Choose a minion for strength -1 penalty", CardType.MINION) {
|
||||
new ChooseActiveCardEffect(self, self.getOwner(), "Choose a minion for strength " + penalty + " penalty", CardType.MINION) {
|
||||
@Override
|
||||
protected void cardSelected(LotroGame game, PhysicalCard card) {
|
||||
action.appendEffect(
|
||||
|
||||
Reference in New Issue
Block a user