From 9905a38b7ed5480b05a22674f947aaf707d58253 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Tue, 1 Jul 2025 03:40:06 +0200 Subject: [PATCH] Removed retroactive companion levelup --- module/applications/sheets/companion.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/applications/sheets/companion.mjs b/module/applications/sheets/companion.mjs index 05aab7b0..1a0eb9f7 100644 --- a/module/applications/sheets/companion.mjs +++ b/module/applications/sheets/companion.mjs @@ -51,8 +51,8 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) { } async onPartnerChange(event) { - const partner = game.actors.find(a => a.uuid === event.target.value); if (event.target.value) { + const partner = game.actors.find(a => a.uuid === event.target.value); await partner.update({ 'system.companion': this.document.uuid }); } else { const update = { 'system.companion': null }; @@ -74,7 +74,6 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) { } await this.document.update({ 'system.partner': event.target.value }); - await this.document.updateLevel(partner ? partner.system.levelData.level.current : 1); } static async attackRoll(event) {