benilla-re systems structs docs

SpellTargetWantsFriendlyCorpse

function · spell · primitive

Address
0x6e6240 · 11 bytes, up to 0x6e624a
Signature
uint32_t __cdecl (void)
Meaning
Returns bit 15 (0x8000) of the flag word
Confidence
verified, proof one
Finding
spell/targeting#flag-word-predicates

Finding: Flag word predicates in spell: targeting

Eleven live predicates return 1 when the flag word, read whole, shares a bit with a mask; two return a single bit. 0x6e61a0 also requires that the pending spell lack AttributesEx 0x80000 (record +0x1c); it reads the record without a null check, so an invalid spell id faults.

functiontest
0x6e6180word & 0x878e
0x6e61a0word & 0x850e, and record +0x1c & 0x80000 clear
0x6e61e0word & 0x040c
0x6e6200word & 0x0500
0x6e6210word & 0x0480
0x6e6230word & 0x8600
0x6e6240bit 15 (0x8000), as 0 or 1
0x6e6250bit 9 (0x200), as 0 or 1
0x6e62d0word & 0x4800
0x6e6320word & 0x60
0x6e6330word & 0x4010

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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