"The One Ring", "Doom of Free Peoples" no longer automatically allows to prevent wounds, if not put on
This commit is contained in:
@@ -73,24 +73,6 @@ public class Card40_001 extends AbstractAttachable {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<? extends Action> getOptionalInPlayBeforeActions(final String playerId, LotroGame game, Effect effect, final PhysicalCard self) {
|
|
||||||
if (TriggerConditions.isGettingWounded(effect, game, Filters.hasAttached(self))
|
|
||||||
&& !game.getModifiersQuerying().hasFlagActive(game, ModifierFlag.RING_TEXT_INACTIVE)) {
|
|
||||||
WoundCharactersEffect woundEffect = (WoundCharactersEffect) effect;
|
|
||||||
List<Action> actions = new LinkedList<Action>();
|
|
||||||
|
|
||||||
ActivateCardAction action = new ActivateCardAction(self);
|
|
||||||
action.appendEffect(new NegateWoundEffect(woundEffect, self.getAttachedTo()));
|
|
||||||
action.appendEffect(new AddBurdenEffect(self.getOwner(), self, 2));
|
|
||||||
action.appendEffect(new PutOnTheOneRingEffect());
|
|
||||||
|
|
||||||
actions.add(action);
|
|
||||||
return actions;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RequiredTriggerAction> getRequiredBeforeTriggers(LotroGame game, Effect effect, PhysicalCard self) {
|
public List<RequiredTriggerAction> getRequiredBeforeTriggers(LotroGame game, Effect effect, PhysicalCard self) {
|
||||||
if (TriggerConditions.isGettingWounded(effect, game, Filters.hasAttached(self))
|
if (TriggerConditions.isGettingWounded(effect, game, Filters.hasAttached(self))
|
||||||
|
|||||||
Reference in New Issue
Block a user