forked from public/foundryvtt-reve-de-dragon
Cleanup Promise.all pour multi async
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user