Correction sur fenêtre d'attaq

This commit is contained in:
2026-03-27 22:47:36 +01:00
parent 896fa512b5
commit a04032e002
41 changed files with 12 additions and 0 deletions

View File

@@ -93,6 +93,18 @@ export class YggdrasillRollDialog {
$("#srTotal").text(rollData.srTotal)
})
}
// Pour armes : mettre à jour l'effet affiché quand le type d'attaque change
if (rollData.mode === "armecc" || rollData.mode === "armetir" || rollData.mode === "armedist") {
$("#typeAttack").on("change", () => {
rollData.attackDef = rollData.attackDef || {}
rollData.attackDef.typeAttack = $("#typeAttack").val()
this._updateAttackData(rollData, actor)
$("#attackDescr").text(rollData.attackData.description || "")
$("#caracName").text(`${rollData.attackData.categName || ""} / ${rollData.attackData.caracName || ""}`)
$("#malus").text(rollData.attackData.malus ?? 0)
})
}
// Pour Sejdr: recalculer srTotal quand DM change
if (rollData.mode === "sejdr") {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.