Cleanup Promise.all pour multi async

This commit is contained in:
2024-05-12 22:40:37 +02:00
parent 19dd3b540c
commit 042f5d0f69
2 changed files with 17 additions and 18 deletions

View File

@ -347,7 +347,7 @@ export class RdDActor extends RdDBaseActorSang {
const timestamp = game.system.rdd.calendrier.getTimestamp()
const blessures = this.filterItems(it => it.system.gravite > 0, TYPES.blessure).sort(Misc.ascending(it => it.system.gravite))
await Promise.all(blessures.map(b => b.recuperationBlessure({
await Promise.all(blessures.map(async b => b.recuperationBlessure({
actor: this,
timestamp,
message,