rollData change

This commit is contained in:
WBHarry 2025-07-20 11:35:28 +02:00
parent 23d572f7f9
commit 30602e946a
4 changed files with 6 additions and 5 deletions

View file

@ -164,7 +164,7 @@ export default class DHBaseAction extends foundry.abstract.DataModel {
getRollData(data = {}) {
if (!this.actor) return null;
const actorData = this.actor.system.getRollData(false);
const actorData = this.actor.getRollData(false);
// Add Roll results to RollDatas
actorData.result = data.roll?.total ?? 1;

View file

@ -370,6 +370,7 @@ export default class DhpActor extends Actor {
getRollData() {
const rollData = super.getRollData();
rollData.system = super.getRollData();
rollData.prof = this.system.proficiency ?? 1;
rollData.cast = this.system.spellcastModifier ?? 1;
return rollData;