Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4447,7 +4447,8 @@
"reloadRequired": "The {weapon} must be reloaded to be used!",
"partnerRequired": "A partner must be assigned to use this action.",
"actorMissing": "The actor {actorName} could not be dealt damage as it no longer exists",
"outdatedModules": "Some of your modules are incompatible and will cause issues with the system. Please disable the following modules: {modules}"
"outdatedModules": "Some of your modules are incompatible and will cause issues with the system. Please disable the following modules: {modules}",
"damageReductionDialogOpened": "The Damage Reduction Dialog was opened for {user}"
},
"Progress": {
"migrationLabel": "Performing system migration. Please wait and do not close Foundry."
Expand Down
4 changes: 4 additions & 0 deletions module/documents/actor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,10 @@ export default class DhActor extends Actor {
key: CONFIG.DH.GENERAL.healingTypes.hitPoints.id
};
if (this.type === 'character' && !isDirect && hpDamage.value > 0 && this.#canReduceDamage(hpDamage.value, hpDamage.damageTypes)) {
if (this.owner.id !== game.user.id) {
ui.notifications.info(_loc('DAGGERHEART.UI.Notifications.damageReductionDialogOpened', { user: this.owner.name }));
}

const armorSlotResult = await this.owner.query(
'armorSlot',
{
Expand Down
Loading