Fixed "Emeralds of Girion"

Also cleaned up formatting a bit
This commit is contained in:
PhallenCassidy
2017-11-14 12:00:02 -05:00
committed by GitHub
parent dff6c6a346
commit b390d04bcc

View File

@@ -38,19 +38,20 @@ public class Card31_003 extends AbstractPermanent {
@Override
protected List<? extends Action> getExtraPhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.FELLOWSHIP, self)) {
final ActivateCardAction action = new ActivateCardAction(self);
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.ELF));
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, Race.MAN));
return Collections.singletonList(action);
}
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.REGROUP, self)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.MAN));
action.appendCost(
new SelfDiscardEffect(self));
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.ELF));
action.appendEffect(
new ChooseAndHealCharactersEffect(action, playerId, 1, 1, Race.MAN));
return Collections.singletonList(action);
}
if (PlayConditions.canUseFPCardDuringPhase(game, Phase.REGROUP, self)
&& PlayConditions.canExert(self, game, Race.MAN)) {
final ActivateCardAction action = new ActivateCardAction(self);
action.appendCost(
new ChooseAndExertCharactersEffect(action, playerId, 1, 1, Race.MAN));
action.appendCost(
new SelfDiscardEffect(self));
List<Effect> possibleEffects = new LinkedList<Effect>();
possibleEffects.add(
new ChooseAndPlayCardFromDeckEffect(playerId, Race.ELF) {
@@ -70,8 +71,8 @@ public class Card31_003 extends AbstractPermanent {
}
action.appendEffect(
new ChoiceEffect(action, playerId, possibleEffects));
return Collections.singletonList(action);
return Collections.singletonList(action);
}
return null;
}
}
}