From e30925821cf2fc2d29902099f446dce91b978cf3 Mon Sep 17 00:00:00 2001 From: Idle <651462+reonZ@users.noreply.github.com> Date: Sat, 23 Nov 2024 01:47:34 +0100 Subject: [PATCH] narrow addAllianceListener actor type --- src/hud/shared/listeners.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud/shared/listeners.ts b/src/hud/shared/listeners.ts index 23e06a2..103ae02 100644 --- a/src/hud/shared/listeners.ts +++ b/src/hud/shared/listeners.ts @@ -130,7 +130,7 @@ function addStatsHeaderListeners(actor: ActorPF2e, html: HTMLElement, token?: To } } -function addAllianceListener(actor: ActorPF2e, html: HTMLElement) { +function addAllianceListener(actor: CharacterPF2e | NPCPF2e, html: HTMLElement) { addListener(html, "[data-step-action='alliance']", "mousedown", (event) => { if (![0, 2].includes(event.button)) return;