Skip to content

Commit

Permalink
narrow addAllianceListener actor type
Browse files Browse the repository at this point in the history
  • Loading branch information
reonZ committed Nov 23, 2024
1 parent fb50126 commit e309258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hud/shared/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e309258

Please sign in to comment.