Fix to make Cosmo happy (#318)

This commit is contained in:
Dapoulp 2025-07-11 17:36:51 +02:00 committed by GitHub
parent 70239ec06a
commit e6126d8104
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,8 +180,8 @@ export default class DHBaseAction extends foundry.abstract.DataModel {
const actorData = this.actor.getRollData(false);
// Remove when included directly in Actor getRollData
actorData.prof = actorData.proficiency?.value ?? 1;
actorData.cast = actorData.spellcast?.value ?? 1;
actorData.prof = actorData.proficiency?.total ?? 1;
actorData.cast = actorData.spellcast?.total ?? 1;
actorData.result = data.roll?.total ?? 1;
/* actorData.scale = data.costs?.length
? data.costs.reduce((a, c) => {