Corrections premiers retours

This commit is contained in:
2025-10-17 17:56:38 +02:00
parent cd8e190082
commit a6c593c100
16 changed files with 85 additions and 61 deletions

View File

@@ -123,7 +123,11 @@ export class RollPartDefense extends RollPartSelect {
return { diff: 0, type: DIFF.LIBRE }
}
else {
return { diff: rollData.attackerRoll.diff ?? 0, type: DIFF.DEFENSE }
const attackerRoll = rollData.attackerRoll
const diff = attackerRoll.v2
? attackerRoll.selected.diff.value
: attackerRoll.diff
return { diff: diff ?? 0, type: DIFF.DEFENSE }
}
}
}