Correction sur fenêtre d'attaq
All checks were successful
Release Creation / build (release) Successful in 3m15s
All checks were successful
Release Creation / build (release) Successful in 3m15s
This commit is contained in:
@@ -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
|
// Pour Sejdr: recalculer srTotal quand DM change
|
||||||
if (rollData.mode === "sejdr") {
|
if (rollData.mode === "sejdr") {
|
||||||
$("#bonusdefense").on("change", () => {
|
$("#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.
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