GetCastFailureKey
function · spell · primitive
- Address
0x6e23e0· 898 bytes, up to0x6e2761- Signature
const char * __fastcall (uint8_t reason)- Meaning
- Returns the SPELL_FAILED_ GlobalStrings key of a reason, SPELL_FAILED_UNKNOWN above 0x90
- Confidence
- verified, proof one
- Finding
- spell/failures#reason-key-switch
Finding: Reason key switch in spell: failures
0x6e23e0 maps a reason byte to its GlobalStrings key. Reason r from 0 to 0x90 returns the string
r places below the top of a run of 146 strings, each padded to 4 bytes, that
descends from 0x870b64 (0, SPELL_FAILED_AFFECTING_COMBAT) to 0x86fab8 (0x90,
SPELL_FAILED_MIN_SKILL); any larger byte returns the run's lowest string, 0x86faa0,
SPELL_FAILED_UNKNOWN. Every key is SPELL_FAILED_ and a name; the 146 are distinct. Keys this
topic relies on: 0x17 DONT_REPORT, 0x23 INTERRUPTED, 0x24 INTERRUPTED_COMBAT, 0x3c
NOT_READY, 0x4d NO_POWER, 0x61 SPELL_IN_PROGRESS, 0x84 PROSPECT_NEED_MORE.
The derivation is in the doc.
Callers 4
- ReportCastFailure spell
- ShowItemCastFailure spell
- ShowProspectCastFailure spell
- PetSpellFailedHandler spell
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.