mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Pass the actor id through the button; fix /dr and /fr flavor text
This commit is contained in:
parent
2c93defd9c
commit
1058b152c2
7 changed files with 15 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { getCommandTarget, rollCommandToJSON } from '../helpers/utils.mjs';
|
||||
|
||||
export default function DhFateRollEnricher(match, _options) {
|
||||
const roll = rollCommandToJSON(match[1], match[0]);
|
||||
const roll = rollCommandToJSON(match[0]);
|
||||
if (!roll) return match[0];
|
||||
|
||||
return getFateMessage(roll.result, roll?.flavor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue