Impacts uniquement sur l'acteur

This commit is contained in:
2025-10-15 22:40:31 +02:00
parent 2cf5b06da8
commit 3e8963b20b
2 changed files with 6 additions and 10 deletions

View File

@@ -450,10 +450,7 @@ export default class RollDialog extends HandlebarsApplicationMixin(ApplicationV2
roll.choix = {}
roll.rolled = await RollDialogAdapter.rollDice(roll, this.rollTitle(roll))
const impacts = {
active: new ActorImpacts(roll.active),
opponent: roll.opponent ? new ActorImpacts(roll.opponent) : undefined
}
const impacts = new ActorImpacts(roll.active)
roll.result = selectedRollType.getResult(roll, impacts)
@@ -465,8 +462,7 @@ export default class RollDialog extends HandlebarsApplicationMixin(ApplicationV2
await Promise.all(callbacks.map(async callback => await callback(roll)))
await impacts.active?.applyImpacts()
await impacts.opponent?.applyImpacts()
await impacts.applyImpacts()
selectedRollType.onApplyImpacts(roll, impacts)
await this.chatRollResult.display(roll, impacts)
this.rollOptions.onRollDone(this)