mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Weaponhandling while in beastform
This commit is contained in:
parent
721eb347db
commit
87f29c3bb3
4 changed files with 23 additions and 1 deletions
|
|
@ -611,6 +611,12 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
|||
await item.update({ 'system.equipped': true });
|
||||
break;
|
||||
case 'weapon':
|
||||
if (this.document.effects.find(x => x.type === 'beastform')) {
|
||||
return ui.notifications.warn(
|
||||
game.i18n.localize('DAGGERHEART.UI.Notifications.beastformEquipWeapon')
|
||||
);
|
||||
}
|
||||
|
||||
await this.document.system.constructor.unequipBeforeEquip.bind(this.document.system)(item);
|
||||
|
||||
await item.update({ 'system.equipped': true });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue