- "Shapes Slowly Advancing" corrupts Ring-bearer whenever there are 4 tokens on the condition, even if the last token

was added by Reinforcing it.
This commit is contained in:
marcins78
2013-01-21 11:57:52 +00:00
parent e7fd14d5a1
commit f309c4355d
2 changed files with 17 additions and 10 deletions

View File

@@ -1,4 +1,8 @@
<pre style="font-size:80%">
<b>21 Jan. 2013</b>
- "Shapes Slowly Advancing" corrupts Ring-bearer whenever there are 4 tokens on the condition, even if the last token
was added by Reinforcing it.
<b>19 Jan. 2013</b>
- "Hugin, Emissary from Laketown" can now only put FP card from discard on bottom of deck.

View File

@@ -12,11 +12,12 @@ import com.gempukku.lotro.game.PhysicalCard;
import com.gempukku.lotro.game.state.LotroGame;
import com.gempukku.lotro.logic.GameUtils;
import com.gempukku.lotro.logic.actions.ActivateCardAction;
import com.gempukku.lotro.logic.actions.RequiredTriggerAction;
import com.gempukku.lotro.logic.actions.SubAction;
import com.gempukku.lotro.logic.effects.CorruptRingBearerEffect;
import com.gempukku.lotro.logic.timing.Action;
import com.gempukku.lotro.logic.timing.Effect;
import com.gempukku.lotro.logic.timing.UnrespondableEffect;
import com.gempukku.lotro.logic.timing.EffectResult;
import java.util.Collections;
import java.util.List;
@@ -36,6 +37,17 @@ public class Card11_217 extends AbstractPermanent {
super(Side.SHADOW, 2, CardType.CONDITION, Culture.WRAITH, Zone.SUPPORT, "Shapes Slowly Advancing");
}
@Override
public List<RequiredTriggerAction> getRequiredAfterTriggers(LotroGame game, EffectResult effectResult, PhysicalCard self) {
if (game.getGameState().getTokenCount(self, Token.WRAITH) >= 4) {
RequiredTriggerAction action = new RequiredTriggerAction(self);
action.appendEffect(
new CorruptRingBearerEffect());
return Collections.singletonList(action);
}
return null;
}
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseShadowCardDuringPhase(game, Phase.REGROUP, self, 0)
@@ -63,15 +75,6 @@ public class Card11_217 extends AbstractPermanent {
}
}
));
action.appendEffect(
new UnrespondableEffect() {
@Override
protected void doPlayEffect(LotroGame game) {
if (game.getGameState().getTokenCount(self, Token.WRAITH) >= 4)
action.appendEffect(
new CorruptRingBearerEffect());
}
});
return Collections.singletonList(action);
}
return null;