benilla-re systems structs docs

CGUnit_C::GetSpellSkillLevel

function · objectlayer · orchestration

Address
0x60cd80 · 69 bytes, up to 0x60cdc4
Signature
uint32_t __thiscall (CGUnit_C *this, uint32_t spellId)
Meaning
Returns a unit's level times 5, capped at the spell's maximum level times 5; slot 42
Confidence
verified, proof one
Finding
spell/records#caster-level

Finding: Caster level in spell: records

0x6e3130(spellId, pet) returns the level a formula scales by: with pet zero, the active player's unit; otherwise the unit whose guid sits in the player's unit fields at +0x00, or at +0x08 when that is zero. It calls the unit's vtable slot 42 with the id and divides the result by 5, unsigned and truncating; no unit gives 0. A creature's slot, 0x60cd80, returns its level at unit field +0x70 times 5, lowered to the record's +0x6c times 5 when that is positive, and 0 for a negative result or no record. The player's slot, 0x5ea690, returns a skill value instead, with the same cap.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.