benilla-re systems structs docs

CGGameUI::ReleaseTarget

function · ui · primitive

Address
0x493910 · 398 bytes, up to 0x493a9d
Signature
void __fastcall (uint32_t sendSelection, uint64_t guid)
Meaning
Releases the old target: loot window, light, token flag, melee attack, and the selection message on a clear
Confidence
verified, proof one
Finding
ui/targeting#releasing-the-old-target

Finding: Releasing the old target in ui: selecting a target

0x493910(sendSelection, guid) runs when the target is replaced (sendSelection 0) or cleared (1), with the old target's GUID. It returns at once with no target stored, or when the GUID differs from the stored one. Otherwise it ends the loot window when that was the looted object, clears the old object's light and its token flag 0x1000, zeroes the stored target, calls StopMeleeAttack on the active player and, when the player has a possessed far-sight unit, SendPetStopAttack. With sendSelection set it sends CMSG_SET_SELECTION with GUID 0 and signals PLAYER_TARGET_CHANGED itself.

The derivation is in the doc.

Callers 8

Callees 15

Calls and jumps by a bare address, from tables/calls.tsv.