ScanAurasForImmunity
function · spell · orchestration
- Address
0x6e9ca0· 203 bytes, up to0x6e9d6a- Signature
uint8_t __fastcall (void *unit, const void *castRec, uint32_t auraType, uint32_t *mechanic)- Meaning
- Returns 1 when the unit has auras of a type and the cast spell is immune to every such effect
- Confidence
- verified, proof one
- Finding
- spell/checks#crowd-control-aura-scans
Finding: Crowd-control aura scans in spell: checks
0x6e9ca0(unit, castRec, auraType, &mechanic) reads the 48 UNIT_FIELD_AURA slots and, for each
effect of each aura record whose aura type is auraType, asks 0x6e9d70(castRec, auraRec, effect).
The first refusal stores the effect's mechanic (+0x13c), else the aura's (+0x14) when nonzero,
and returns 0. It returns 1 when such an effect exists and every one is exempt, else 0. The
wrappers clear mechanic and try aura types in order, returning 1 on the first 1: 0x6e9c80 12;
0x6e9e60 27, 12, 60; 0x6e9ec0 25, 12, 60; 0x6e9f20 7; 0x6e9f40 5; 0x6e9f60 6, 177, 2.
The derivation is in the doc.
Callers 6
- ScanStunAuras spell
- ScanSilenceAuras spell
- ScanPacifyAuras spell
- ScanFearAuras spell
- ScanConfuseAuras spell
- ScanCharmAuras spell
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.