From 96896ba92fcdc2b057e4f61f412b11d01b02b878 Mon Sep 17 00:00:00 2001 From: "Tim Evans (slaguru666)" Date: Wed, 27 May 2026 19:17:39 +0100 Subject: [PATCH] Fix critical button roll: pass explicit table formula to bypass modifier slider prompt and prevent roll out-of-bounds error --- module/mosh.js | 2 +- system.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mosh.js b/module/mosh.js index 01fe932..79086f0 100644 --- a/module/mosh.js +++ b/module/mosh.js @@ -454,7 +454,7 @@ Hooks.on("renderChatMessageHTML", (app, html) => { return; } - await actor.rollTable(resolved.uuid ?? resolved.id ?? tableId, null, null, null, null, null, null); + await actor.rollTable(resolved.uuid ?? resolved.id ?? tableId, resolved.formula ?? "1d10", "low", true, false, null, null); }); }); diff --git a/system.json b/system.json index a6317d1..91e43aa 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "sla-mothership", "title": "SLA Mothership", "description": "An SLA Industries conversion built on the unofficial Mothership system for Foundry VTT, preserving Mothership's core mechanics while adding SLA flux, Ebb, BPN, and equipment support.", - "version": "0.6.8", + "version": "0.6.9", "esmodules": [ "module/mosh.js" ],