benilla-re systems structs docs

IsSpellTargetingForOtherCaster

function · spell · orchestration

Address
0x6e48b0 · 42 bytes, up to 0x6e48d9
Signature
uint32_t __cdecl (void)
Meaning
Returns 1 while targeting for a caster other than the active player
Confidence
verified, proof one
Finding
spell/checks#targeting-state-predicates

Finding: Targeting-state predicates in spell: checks

The targeting word 0xcecac0 (targeting) is nonzero while a spell awaits a target. 0x6e48a0 returns whether it is. 0x6e48e0 returns the pending spell id (block +0x10) while it is, else 0. 0x6e48b0 returns 1 while targeting for a caster other than the active player (block +0x08). 0x6e4900 and 0x6e4920 cancel targeting through 0x6e4940(cl 1, dl 1, reason 0x1c) when 0x6e48a0, or 0x6e48b0, holds; the cancel, for the active player's own pending cast, signals SPELLCAST_FAILED (339).

The derivation is in the doc.

Callers 1

Callees 2

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