CGGameUI::ReleaseTarget
function · ui · primitive
- Address
0x493910· 398 bytes, up to0x493a9d- 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
- EndLootWindow ui
- CGGameUI::SelectTarget ui
- RebuildRaidRoster ui
- AddPartyMember ui
- ClearParty ui
- OnCharmOrSummonChanged objectlayer
- ReadGroupList objectlayer
- CGUnit_C::Release objectlayer
Callees 15
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- GetObjectManager objectlayer
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- EndLootWindow ui
- FireUsableEvents ui
- SendPetStopAttack ui
- ClientServices::Send net
- CGPlayer_C::StopMeleeAttack objectlayer
- CGPlayer_C::GetPossessedFarSightUnit objectlayer
- CGUnit_C::RemoveUnitTokenFlags objectlayer
- CGObject_C::ClearLight objectlayer
- PlayerNameMarkColorDirty playername
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.