refactoring

This commit is contained in:
marcins78
2013-02-21 10:37:22 +00:00
parent 753591a73d
commit 93e156e387

View File

@@ -34,12 +34,11 @@ public class Card3_114 extends AbstractPermanent {
public List<? extends ActivateCardAction> getOptionalInPlayBeforeActions(String playerId, LotroGame game, Effect effect, PhysicalCard self) {
if (TriggerConditions.isAddingTwilight(effect, game, Side.SHADOW)
&& PlayConditions.canExert(self, game, Race.HOBBIT, CardType.ALLY)) {
final AddTwilightEffect addTwilightEffect = (AddTwilightEffect) effect;
ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.HOBBIT, CardType.ALLY));
action.appendEffect(
new PreventEffect(addTwilightEffect));
new PreventEffect((AddTwilightEffect) effect));
return Collections.singletonList(action);
}
return null;