From 59ff38bd4f9158ac14588402b5c7a5ce32c1e1ad Mon Sep 17 00:00:00 2001 From: Dapoolp Date: Sat, 12 Jul 2025 18:10:25 +0200 Subject: [PATCH] Actor getRollData --- module/documents/actor.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index 40ac7bfc..0bd45690 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -370,7 +370,10 @@ export default class DhpActor extends Actor { } getRollData() { - return this.system; + const rollData = super.getRollData(); + rollData.prof = this.system.proficiency?.total ?? 1; + rollData.cast = this.system.spellcast?.total ?? 1; + return rollData; } formatRollModifier(roll) {