1 Commits

Author SHA1 Message Date
a04032e002 Correction sur fenêtre d'attaq
All checks were successful
Release Creation / build (release) Successful in 3m15s
2026-03-27 22:47:36 +01:00
41 changed files with 12 additions and 0 deletions

View File

@@ -94,6 +94,18 @@ export class YggdrasillRollDialog {
})
}
// 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") {
$("#bonusdefense").on("change", () => {

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.