mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Remote casts cached from SMSG_SPELL_START were expired only by their computed end time — an interrupted remote cast lingered as a ghost bar for every UnitCastingInfo consumer (pfUI #11). The interrupt signal does exist at the packet layer: the server broadcasts SMSG_SPELL_FAILED_OTHER to observers whenever a started cast aborts (interrupt, death, movement, fizzle). Co-hook its handler (0x006E8E40, same __stdcall shape as FUN_SPELL_DELAYED; address + layout mirrored from nampower's SpellFailedOtherHandlerHook — body is plain casterGuid(u64), spellId(u32)) and: - evict the matching g_remoteCasts entry (guid + spellID), so remote cast/channel bars drop the same tick the cast dies; - clear the player's own g_cast on a guid match — covers the server-stamped chained recast that the WorldTick VAR==0 poll can't clear (self-receipt is server-dependent; the endMs self-expiry backstop remains if it never fires). Update the stale 'no per-unit interrupt signal in 1.12' notes in Cast.cpp and docs/API.md.