- "Herblore of the Shire" now applies the limit the same way "Trust Me As You Once Did" does.

This commit is contained in:
marcins78
2013-04-04 09:44:52 +00:00
parent 5b18a232d5
commit cd1b47c0f9
2 changed files with 17 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
- "Troll of Morannon" has no Damage +1 keyword (per card text).
- "Cave Troll of Moria, Monstrous Friend" should now correctly count the number of cards you can discard from hand to
play it, when figuring out, if it is playable.
- "Herblore of the Shire" now applies the limit the same way "Trust Me As You Once Did" does.
<b>25 Mar. 2013</b>
- Changed all images for set 20 from PNG to JPEG.

View File

@@ -2,14 +2,17 @@ package com.gempukku.lotro.cards.set20.shire;
import com.gempukku.lotro.cards.AbstractPermanent;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.effects.choose.ChooseAndAddUntilEOPStrengthBonusEffect;
import com.gempukku.lotro.cards.effects.AddUntilEndOfPhaseModifierEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndDiscardCardsFromPlayEffect;
import com.gempukku.lotro.cards.modifiers.evaluator.CardPhaseLimitEvaluator;
import com.gempukku.lotro.cards.modifiers.evaluator.CountSpottableEvaluator;
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.ActivateCardAction;
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import com.gempukku.lotro.logic.timing.Action;
import java.util.Collections;
@@ -36,15 +39,23 @@ public class Card20_391 extends AbstractPermanent {
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, PhysicalCard self) {
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.SKIRMISH, self)
&& PlayConditions.canDiscardFromPlay(self, game, CardType.POSSESSION, Keyword.PIPEWEED)) {
ActivateCardAction action = new ActivateCardAction(self);
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndDiscardCardsFromPlayEffect(action, playerId, 1, 1, CardType.POSSESSION, Keyword.PIPEWEED));
action.appendEffect(
new ChooseAndAddUntilEOPStrengthBonusEffect(action, self, playerId,
new CountSpottableEvaluator(3, PossessionClass.PIPE), CardType.COMPANION));
new ChooseActiveCardEffect(self, playerId, "Choose a companion", CardType.COMPANION) {
@Override
protected void cardSelected(LotroGame game, PhysicalCard card) {
action.appendEffect(
new AddUntilEndOfPhaseModifierEffect(
new StrengthModifier(self, card, null,
new CardPhaseLimitEvaluator(game, self, Phase.SKIRMISH, 3,
new CountSpottableEvaluator(PossessionClass.PIPE)))));
}
});
return Collections.singletonList(action);
}
return null;