mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Fixes
This commit is contained in:
parent
973e54df96
commit
26ec779fcf
1 changed files with 2 additions and 2 deletions
|
|
@ -261,8 +261,8 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
condition: target => getDocFromElement(target).system.inVault,
|
||||
callback: target => {
|
||||
const doc = getDocFromElement(target),
|
||||
actorLoadout = doc.actor?.system.loadoutSlot ?? null;
|
||||
if(actorLoadout?.available) return doc.update({ 'system.inVault': false });
|
||||
actorLoadout = doc.actor.system.loadoutSlot;
|
||||
if(actorLoadout.available) return doc.update({ 'system.inVault': false });
|
||||
ui.notifications.warn(game.i18n.format('DAGGERHEART.UI.Notifications.loadoutMaxReached', { max: actorLoadout.max }))
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue