s_castArmJumpTable
global · spell
- Address
0x6e5484· 44 bytes, up to0x6e54af- Type
void *[11]- Meaning
- Holds the eleven case addresses of the targeting arm 0x6e5250; case 10 is the no-change exit
- Confidence
- verified, proof one
- 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 target | word |
|---|---|
| 1 | clears 0x400 |
| 5 | clears 0x8000 |
| 6, 53 | sets 0x80 |
| 16 | marks the cursor |
| 21, 45 | sets 0x100 |
| 23 | sets 0x800 |
| 25, 63 | sets 0x2 |
| 26 | sets 0x4000 |
| 35 | sets 0x8 |
| 57, 61 | sets 0x4 |
The derivation is in the doc.