forked from public/fvtt-yggdrasill
Correction sur fenêtre d'attaq
This commit is contained in:
@@ -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.
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.
Reference in New Issue
Block a user