From dbc7f5a713ad8bbed539f0037c6e7f55385941ac Mon Sep 17 00:00:00 2001 From: Tim Evans Date: Fri, 17 Jul 2026 11:21:13 +0100 Subject: [PATCH] =?UTF-8?q?Providence/Calamity=20also=20fires=20on=20letha?= =?UTF-8?q?lity=20rolls=20=E2=80=94=20v2.1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nat-01/00 home rule (shipped v2.0.2) only hooked DGPercentileRoll's toChat; lethality rolls are d100 tests too and now trigger it as well. Verified live with forced rolls: nat 01 posts the PROVIDENCE card, nat 00 posts CALAMITY, d6 table result + styling + variant flags all correct. Co-Authored-By: Claude Fable 5 --- module/roll/roll.js | 5 ++++- system.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/roll/roll.js b/module/roll/roll.js index 1464ad2..9989f09 100644 --- a/module/roll/roll.js +++ b/module/roll/roll.js @@ -744,7 +744,10 @@ export class DGLethalityRoll extends DGPercentileRoll { }, ); - return this.toMessage({ content: html }); + const message = await this.toMessage({ content: html }); + // Lethality is a d100 test too - natural 01/00 triggers the home rule. + await maybeTriggerCriticalEvent(this); + return message; } /** diff --git a/system.json b/system.json index 246f23f..f9fc396 100644 --- a/system.json +++ b/system.json @@ -15,7 +15,7 @@ "discord": "jalensailin" } ], - "version": "2.1.0", + "version": "2.1.1", "compatibility": { "minimum": "13", "verified": "14",