benilla-re systems structs docs

s_pendingCastText

global · spell

Address
0xcee838 · 1 bytes, up to 0xcee838
Type
char
Meaning
Holds the first character of the text the targeting arm copies into the pending cast; cleared by 0x6e5250
Confidence
inferred
Finding
spell/cast#the-targeting-arm

Finding: The targeting arm in spell: cast

0x6e5250(caster, record, guid) loads the word 0xcecac0 from Targets (+0x34, 16 bits), then switches on EffectImplicitTargetA[0] (+0x148), 1 to 63, through an 11-entry table. If the word has 0x2000 and the text 0xcee838 is not empty, the text is copied to the record's +0x70, 0x2000 leaves the word and enters the mask. It fires ACTIONBAR_UPDATE_STATE and CURRENT_SPELL_CAST_CHANGED through 0x4b3250; then a zero word sends at once. Target 16 returns 0. Otherwise a candidate is bound through 0x6e5b40; with none bound, the active player is bound when the autoSelfCast value is nonzero; else an unknown object whose spell's maximum range exceeds 100 is sent by guid.

implicit targetword
1clears 0x400
5clears 0x8000
6, 53sets 0x80
16marks the cursor
21, 45sets 0x100
23sets 0x800
25, 63sets 0x2
26sets 0x4000
35sets 0x8
57, 61sets 0x4

The derivation is in the doc.