Update character.mjs (#506)

This commit is contained in:
Cyril ALFARO 2025-08-02 01:30:17 +02:00 committed by GitHub
parent 371e6db0ee
commit 66fc4e2854
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -640,7 +640,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
await item.update({ 'system.equipped': true }); await item.update({ 'system.equipped': true });
break; break;
case 'weapon': case 'weapon':
if (this.document.effects.find(x => x.type === 'beastform')) { if (this.document.effects.find(x => !x.disabled && x.type === 'beastform')) {
return ui.notifications.warn( return ui.notifications.warn(
game.i18n.localize('DAGGERHEART.UI.Notifications.beastformEquipWeapon') game.i18n.localize('DAGGERHEART.UI.Notifications.beastformEquipWeapon')
); );