Mathih13 and Claude Opus 5.5
ab909df6d9
fix: TargetUnit("npc") selects the interaction NPC, as 1.12.1 does ( #800 )
...
`TargetUnit("npc")`, `AssistUnit("npc")` and `SpellTargetUnit("npc")` did nothing with a merchant, gossip or quest window open: the app's unit-token resolver answered nobody for `npc`.
In 1.12.1 the resolver (`0x515970`) matches `npc` as a whole token (`0x515bec`, an unbounded compare, so `npctarget` stays unknown) and takes the interaction NPC's guid `[0xb4e2d0]`, which `0x4930d0` writes when the window opens.
`npc` now resolves to the held unit `InteractNpc` names. Tests cover the three verbs, a closed window and a streamed-out NPC, and `/script TargetUnit("npc")` typed into the stock chat box.
Fixes #707
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-05 21:57:08 +07:00
..
2026-10-01 07:38:38 +07:00
2026-09-29 01:44:52 +07:00
2026-09-29 10:09:02 +07:00
2026-09-29 10:51:21 +07:00
2026-09-26 01:06:28 +07:00
2026-09-26 01:06:28 +07:00
2026-09-26 01:06:28 +07:00
2026-09-29 10:09:02 +07:00
2026-09-29 15:53:20 +07:00
2026-09-28 23:52:14 +07:00
2026-09-26 01:06:28 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 01:44:52 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-10-05 21:57:08 +07:00
2026-10-01 09:55:26 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-25 08:20:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 03:19:56 +07:00
2026-09-25 08:20:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 22:01:24 +07:00
2026-09-25 08:20:21 +07:00
2026-09-28 22:01:24 +07:00
2026-09-29 03:19:56 +07:00
2026-09-26 01:06:28 +07:00
2026-09-28 23:52:14 +07:00
2026-09-25 08:20:21 +07:00
2026-10-01 10:56:03 +07:00
2026-09-30 10:20:16 +07:00
2026-10-01 10:56:03 +07:00
2026-09-30 10:20:16 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 10:51:21 +07:00
2026-10-01 07:38:38 +07:00
2026-09-29 10:09:02 +07:00
2026-09-29 10:09:02 +07:00
2026-09-29 03:19:56 +07:00
2026-09-29 01:44:52 +07:00
2026-09-29 10:51:21 +07:00
2026-10-02 04:54:20 +07:00
2026-09-29 10:51:21 +07:00
2026-09-29 02:30:40 +07:00
2026-09-28 23:52:14 +07:00
2026-10-05 21:57:08 +07:00
2026-09-25 08:20:21 +07:00
2026-09-29 10:51:21 +07:00
2026-10-04 11:04:32 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 01:44:52 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 10:51:21 +07:00
2026-09-30 06:20:12 +07:00
2026-09-25 08:20:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 12:46:33 +07:00
2026-09-25 08:20:21 +07:00
2026-09-29 10:51:21 +07:00
2026-09-26 08:57:47 +07:00
2026-09-26 01:06:28 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 10:51:21 +07:00
2026-09-29 02:30:40 +07:00
2026-09-29 00:12:27 +07:00
2026-09-25 08:20:21 +07:00
2026-09-29 21:11:47 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 01:44:52 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-10-03 17:36:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-25 08:20:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-30 15:31:35 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-26 01:06:28 +07:00
2026-09-29 10:09:02 +07:00
2026-09-29 10:51:21 +07:00
2026-09-28 23:52:14 +07:00
2026-09-28 23:52:14 +07:00
2026-09-29 02:30:40 +07:00