- "New Errand" now correctly allows to choose which minion to wound, if the minion loses that skirmish.

This commit is contained in:
marcins78@gmail.com
2011-11-21 02:27:42 +00:00
parent 8b1831215f
commit a683fcd7c2
2 changed files with 9 additions and 17 deletions

View File

@@ -11,11 +11,9 @@ import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.AbstractActionProxy; import com.gempukku.lotro.game.AbstractActionProxy;
import com.gempukku.lotro.game.PhysicalCard; import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame; 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.decisions.MultipleChoiceAwaitingDecision;
import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect; import com.gempukku.lotro.logic.effects.ChooseActiveCardEffect;
import com.gempukku.lotro.logic.effects.PlayoutDecisionEffect; import com.gempukku.lotro.logic.effects.ChooseAndWoundCharactersEffect;
import com.gempukku.lotro.logic.effects.WoundCharactersEffect;
import com.gempukku.lotro.logic.timing.EffectResult; import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections; import java.util.Collections;
@@ -60,20 +58,13 @@ public class Card4_128 extends AbstractOldEvent {
new AddUntilEndOfPhaseActionProxyEffect( new AddUntilEndOfPhaseActionProxyEffect(
new AbstractActionProxy() { new AbstractActionProxy() {
@Override @Override
public List<? extends RequiredTriggerAction> getRequiredAfterTriggers(LotroGame lotroGame, EffectResult effectResults) { public List<? extends OptionalTriggerAction> getOptionalAfterTriggers(String playerId, LotroGame game, EffectResult effectResult) {
if (TriggerConditions.losesSkirmish(game, effectResults, Filters.sameCard(minion))) { if (TriggerConditions.losesSkirmish(game, effectResult, Filters.sameCard(minion))
final RequiredTriggerAction action = new RequiredTriggerAction(self); && playerId.equals(game.getGameState().getCurrentPlayerId())) {
final OptionalTriggerAction action = new OptionalTriggerAction(self);
action.setVirtualCardAction(true);
action.appendEffect( action.appendEffect(
new PlayoutDecisionEffect(playerId, new ChooseAndWoundCharactersEffect(action, playerId, 1, 1, CardType.MINION));
new MultipleChoiceAwaitingDecision(1, "Would you like to wound " + minion.getBlueprint().getName(), new String[]{"Yes", "No"}) {
@Override
protected void validDecisionMade(int index, String result) {
if (result.equals("Yes")) {
action.insertEffect(
new WoundCharactersEffect(self, minion));
}
}
}));
return Collections.singletonList(action); return Collections.singletonList(action);
} }
return null; return null;

View File

@@ -2,6 +2,7 @@
<b>20 Nov. 2011</b> <b>20 Nov. 2011</b>
- "Sauron" no longer has his twilight cost reduced by the twilight pool size, instead of burdens spotted. - "Sauron" no longer has his twilight cost reduced by the twilight pool size, instead of burdens spotted.
- "Raider Halberd" now correctly adds 2 strength to bearer. - "Raider Halberd" now correctly adds 2 strength to bearer.
- "New Errand" now correctly allows to choose which minion to wound, if the minion loses that skirmish.
<b>19 Nov. 2011</b> <b>19 Nov. 2011</b>
- "Dead Man of Dunharrow" now correctly has Enduring keyword. - "Dead Man of Dunharrow" now correctly has Enduring keyword.