Skip to content

Commit

Permalink
fix: always publicly show fast healing on player actors
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosFdez committed Jul 3, 2021
1 parent 4aec531 commit 5fdf005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module/pf2e-persistent-damage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export class PersistentDamagePF2e {
}

if (formulas.length > 0) {
const rollMode = actor.hasPlayerOwner ? "roll" : game.settings.get('core', 'rollMode');
const flavor = game.i18n.format("PF2E-PD.HealingProcess", { sources: sources.join(", ")});
const roll = new Roll(formulas.join(" + ")).evaluate({ async: false });
const ChatMessage = CONFIG.ChatMessage.documentClass as typeof ChatMessagePF2e;
Expand All @@ -344,7 +345,7 @@ export class PersistentDamagePF2e {
type: CONST.CHAT_MESSAGE_TYPES.ROLL,
roll,
sound: CONFIG.sounds.dice,
});
}, { rollMode });

messages.push(message);
}
Expand Down

0 comments on commit 5fdf005

Please sign in to comment.