diff --git a/fvtt-hamalron.mjs b/fvtt-hamalron.mjs index acacf1c..fda3618 100644 --- a/fvtt-hamalron.mjs +++ b/fvtt-hamalron.mjs @@ -237,14 +237,9 @@ function addChatTools() { game.system.api.openActionComplexe() }) } - addBtn("fas fa-wand-magic-sparkles", "Sort", "Lancer un sort", () => { + addBtn("fas fa-dice", "Épreuve", "Lancer une épreuve standard", () => { const actor = game.user?.character || game.actors?.find(a => a.type === "personnage") - if (actor) { - const spell = actor.items.find(i => i.type === "sortilege") - if (spell) { - import("./module/applications/sortilege-casting.mjs").then(m => m.default.prompt(spell, actor)) - } - } + if (actor) actor.system?.roll?.("stat", { name: "Épreuve", value: 0 }) }) controls.parentNode.insertBefore(tools, controls)