- "Úlairë Nertëa" now optionally allows to play the minion, instead of making you play. So you can choose how many

minions to play.
This commit is contained in:
marcins78@gmail.com
2012-02-06 10:30:12 +00:00
parent 4c9df702e6
commit 91de561661
3 changed files with 22 additions and 11 deletions

View File

@@ -35,16 +35,17 @@ public class OptionalEffect extends AbstractSubActionEffect {
@Override
public void playEffect(final LotroGame game) {
game.getUserFeedback().sendAwaitingDecision(_playerId,
new MultipleChoiceAwaitingDecision(1, "Do you wish to " + _optionalEffect.getText(game) + "?", new String[]{"Yes", "No"}) {
@Override
protected void validDecisionMade(int index, String result) {
if (index == 0) {
SubAction subAction = new SubAction(_action);
subAction.appendEffect(_optionalEffect);
processSubAction(game, subAction);
if (_optionalEffect.isPlayableInFull(game))
game.getUserFeedback().sendAwaitingDecision(_playerId,
new MultipleChoiceAwaitingDecision(1, "Do you wish to " + _optionalEffect.getText(game) + "?", new String[]{"Yes", "No"}) {
@Override
protected void validDecisionMade(int index, String result) {
if (index == 0) {
SubAction subAction = new SubAction(_action);
subAction.appendEffect(_optionalEffect);
processSubAction(game, subAction);
}
}
}
});
});
}
}

View File

@@ -3,6 +3,7 @@ package com.gempukku.lotro.cards.set1.wraith;
import com.gempukku.lotro.cards.AbstractMinion;
import com.gempukku.lotro.cards.PlayConditions;
import com.gempukku.lotro.cards.TriggerConditions;
import com.gempukku.lotro.cards.effects.OptionalEffect;
import com.gempukku.lotro.cards.effects.choose.ChooseAndPlayCardFromDiscardEffect;
import com.gempukku.lotro.common.CardType;
import com.gempukku.lotro.common.Culture;
@@ -42,7 +43,14 @@ public class Card1_234 extends AbstractMinion {
int minions = Math.max(0, companions - 4);
for (int i = 0; i < minions; i++) {
action.appendEffect(
new ChooseAndPlayCardFromDiscardEffect(playerId, game, CardType.MINION));
new OptionalEffect(action, playerId,
new ChooseAndPlayCardFromDiscardEffect(playerId, game, CardType.MINION) {
@Override
public String getText(LotroGame game) {
return "PlayConditions minion from your discard pile";
}
}
));
}
return Collections.singletonList(action);
}

View File

@@ -1,6 +1,8 @@
<pre style="font-size:80%">
<b>5 Feb. 2012</b>
- "Beyond Dark Mountains" now exerts ISENGARD minion.
- "Úlairë Nertëa" now optionally allows to play the minion, instead of making you play. So you can choose how many
minions to play.
<b>4 Feb. 2012</b>
- "Depths of Moria" now has a corrected name.