s_targetGuid
global · ui
- Address
0xb4e2d8· 8 bytes, up to0xb4e2df- Type
uint64_t- Meaning
- Holds the selected target's GUID, which the checks read when given none
- Confidence
- verified, proof one
- Finding
- ui/targeting#setting-the-target
Finding: Setting the target in ui: selecting a target
0x493540(guid) selects a unit, or clears the selection for GUID 0. It does nothing when the protected gate for kind 3
fails or when the active player is charmed (descriptor dwords +0x10 and +0x14 not both 0). A nonzero GUID's
object is looked up. While a spell awaits a target, a found one is only bound as its target;
otherwise its virtual slot +0x58 must answer nonzero. A missing one skips both. Selecting the current target does nothing.
Otherwise the old target is kept for TargetLastTarget and the new one stored, object or not; a found object is lit, and an
attackable one kept for TargetLastEnemy. CMSG_SET_SELECTION (0x13d) is sent, PLAYER_TARGET_CHANGED signalled, and an
attacking player attacks the target.
The derivation is in the doc.