Providence/Calamity also fires on lethality rolls — v2.1.1

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 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 11:21:13 +01:00
co-authored by Claude Fable 5
parent b4b1bfed1e
commit dbc7f5a713
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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;
}
/**
+1 -1
View File
@@ -15,7 +15,7 @@
"discord": "jalensailin"
}
],
"version": "2.1.0",
"version": "2.1.1",
"compatibility": {
"minimum": "13",
"verified": "14",