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:
+4
-1
@@ -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
@@ -15,7 +15,7 @@
|
||||
"discord": "jalensailin"
|
||||
}
|
||||
],
|
||||
"version": "2.1.0",
|
||||
"version": "2.1.1",
|
||||
"compatibility": {
|
||||
"minimum": "13",
|
||||
"verified": "14",
|
||||
|
||||
Reference in New Issue
Block a user