StopSpellTargeting
function · spell · orchestration
- Address
0x6e4900· 21 bytes, up to0x6e4914- Signature
void __cdecl (void)- Meaning
- Cancels targeting through 0x6e4940 with reason 0x1c while targeting
- 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 5
- CancelTargetingOrRotatePlacement ui
- CastBookSpell ui
- UseActionSlot ui
- Script::SplitContainerItem ui
- Script::SpellStopTargeting spell
Callees 2
- IsSpellTargeting spell
- CancelCast spell
Calls and jumps by a bare address, from tables/calls.tsv.