- "The One Ring, Isildur's Bane" will be taken off at the end of Regroup if it was put on during Regroup

This commit is contained in:
marcins78@gmail.com
2011-10-15 18:55:11 +00:00
parent 082f0554fd
commit 579e435421
2 changed files with 30 additions and 12 deletions

View File

@@ -68,20 +68,37 @@ public class Card1_001 extends AbstractAttachable {
action.appendEffect(new PreventCardEffect(woundEffect, self.getAttachedTo()));
action.appendEffect(new AddBurdenEffect(self, 2));
action.appendEffect(new PutOnTheOneRingEffect());
action.appendEffect(new AddUntilStartOfPhaseActionProxyEffect(
new AbstractActionProxy() {
@Override
public List<? extends Action> getRequiredAfterTriggers(LotroGame lotroGame, EffectResult effectResult) {
if (effectResult.getType() == EffectResult.Type.START_OF_PHASE
&& ((StartOfPhaseResult) effectResult).getPhase() == Phase.REGROUP) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(new TakeOffTheOneRingEffect());
return Collections.singletonList(action);
if (game.getGameState().getCurrentPhase() == Phase.REGROUP) {
action.appendEffect(new AddUntilEndOfPhaseActionProxyEffect(
new AbstractActionProxy() {
@Override
public List<? extends Action> getRequiredAfterTriggers(LotroGame lotroGame, EffectResult effectResult) {
if (effectResult.getType() == EffectResult.Type.END_OF_PHASE
&& ((StartOfPhaseResult) effectResult).getPhase() == Phase.REGROUP) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(new TakeOffTheOneRingEffect());
return Collections.singletonList(action);
}
return null;
}
return null;
}
}
, Phase.REGROUP));
, Phase.REGROUP));
} else {
action.appendEffect(new AddUntilStartOfPhaseActionProxyEffect(
new AbstractActionProxy() {
@Override
public List<? extends Action> getRequiredAfterTriggers(LotroGame lotroGame, EffectResult effectResult) {
if (effectResult.getType() == EffectResult.Type.START_OF_PHASE
&& ((StartOfPhaseResult) effectResult).getPhase() == Phase.REGROUP) {
ActivateCardAction action = new ActivateCardAction(self);
action.appendEffect(new TakeOffTheOneRingEffect());
return Collections.singletonList(action);
}
return null;
}
}
, Phase.REGROUP));
}
actions.add(action);
return actions;

View File

@@ -3,6 +3,7 @@
- Permanents will no longer highlight in had if they have Response action on them
- Fixed all the cards that were supposed to discard themselves on use, but did not (i.e. "Gondor Bowmen")
- Drawing cards now correctly triggers "Verily I Come"
- "The One Ring, Isildur's Bane" will be taken off at the end of Regroup if it was put on during Regroup
<b>14 Oct. 2011</b>
- Uruviel and all other copying site allies should now correctly have modifiers off sites