Altered the way that multi-wound actionss (such as "wound all minions") works to ensure that prevention effects do not struggle to distinguish their target from a group of cards.
This commit is contained in:
@@ -45,8 +45,12 @@ public class Wound implements EffectAppenderProducer {
|
||||
final Collection<? extends PhysicalCard> cardsFromMemory = actionContext.getCardsFromMemory(memory);
|
||||
final int timesCount = times.getEvaluator(actionContext).evaluateExpression(actionContext.getGame(), null);
|
||||
List<Effect> result = new LinkedList<>();
|
||||
for (int i = 0; i < timesCount; i++)
|
||||
result.add(new WoundCharactersEffect(actionContext.getSource(), Filters.in(cardsFromMemory)));
|
||||
for(var card : cardsFromMemory) {
|
||||
for (int i = 0; i < timesCount; i++) {
|
||||
result.add(new WoundCharactersEffect(actionContext.getSource(), card));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user