SpellGrantsImmunityToAuraEffect
function · spell · primitive
- Address
0x6e9d70· 168 bytes, up to0x6e9e17- Signature
uint8_t __fastcall (const void *castRec, const void *auraRec, uint32_t effect)- Meaning
- Returns 1 when the cast spell applies a state, school, dispel or mechanic immunity covering an aura effect
- Confidence
- verified, proof one
- Finding
- spell/checks#immunity-matcher
Finding: Immunity matcher in spell: checks
0x6e9d70(castRec, auraRec, j) returns 1 when the spell being cast grants an immunity that covers
effect j of the aura. It returns 0 when castRec is null, lacks AttributesEx & 0x8000, or
auraRec has Attributes & 0x20000000. Otherwise, for each of the cast's three effects that is
6 (apply aura), with m its misc value, the effect's aura type decides: 38 matches when m equals
the aura's aura type for effect j; 39 when bit School & 31 of m is set and the aura lacks
AttributesEx2 & 0x4000000; 41 when m equals the aura's Dispel; 77 when m equals its
Mechanic or effect j's mechanic. Any match returns 1; other types never match.
The derivation is in the doc.
Callers 1
- ScanAurasForImmunity spell
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.