benilla-re systems structs docs

s_worldPickTypeCaseTable

global · ui

Address
0x480850 · 121 bytes, up to 0x4808c8
Type
uint8_t[121]
Meaning
Maps an object type mask less 9 to the four cases of 0x480780: unit, player, game object, corpse, else 4
Confidence
verified, proof one
Finding
spell/targeting#object-pick-filters

Finding: Object pick filters in spell: targeting

The world frame's per-object pick filter 0x480780, while targeting, admits a game object only when 0x6e62e0 holds and a corpse only when 0x6e6260 holds. 0x6e62e0 requires word 0x4800, a game-object type bit and 0x5f8260. 0x6e6260 requires a live caster and a corpse without flag 0x1: with word bit 0x8000 it returns whether 0x6067d0 holds and never tries 0x200; otherwise, with 0x200, it returns whether 0x6067d0 fails.

The derivation is in the doc.