Wounding X-times as an effect (not cost) in new implementation allows to choose exhausted characters.

This commit is contained in:
marcin.sciesinski
2020-03-26 08:42:40 -07:00
parent 3bb37dfafd
commit a89e59e7a9

View File

@@ -35,6 +35,7 @@ public class Wound implements EffectAppenderProducer {
result.addEffectAppender(
CardResolver.resolveCards(filter,
(actionContext) -> Filters.canTakeWounds(actionContext.getSource(), 1),
(actionContext) -> Filters.canTakeWounds(actionContext.getSource(), times.getEvaluator(actionContext).evaluateExpression(actionContext.getGame(), null)),
valueSource, memory, player, "Choose cards to wound", environment));
result.addEffectAppender(
@@ -53,4 +54,5 @@ public class Wound implements EffectAppenderProducer {
return result;
}
}