Spell_C::GetMinMaxRange
function · spell · primitive
- Address
0x6e3480· 726 bytes, up to0x6e3755- Signature
void __fastcall (void *caster, uint32_t spellId, float *minRange, float *maxRange, void *target)- Meaning
- Computes a spell's minimum and maximum range from its range row, reaches, motion, ranged item and op 5
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- spell/records#range
- Test
spell::spell_minmax_range_arms_difftest,spell::spell_minmax_range_difftest
Finding: Range in spell: records
GetMinMaxRange(caster, spellId, &min, &max, target) zeroes both and returns for a null caster or
no record, or with max = 100.0 for +0x18 & 0x404. target is a unit when its type
has bit 3. With R(u) a unit's float at unit field +0x1f0: a SpellRange row (+0x90) with flag
bit 0 sets min = 0 and max = S if S = R(t) + R(caster) + 4/3 > 5.0, else 5.0, t being the
unit target, else the unit whose guid is at caster +0xc48, else the caster. Another row copies
its +0x04 and +0x08; a target of type bit 3 or 7 adds R(caster) + R(unit target, else caster) to max, and to min unless min == 0.
The derivation is in the doc.
Callers 11
- CGWorldFrame::ClassifyHoveredUnit ui
- CGWorldFrame::ClassifyHoveredCorpse ui
- ActionSlotHasRange ui
- CGTooltip::BuildSpell ui
- CGPlayer_C::InteractWithSpell objectlayer
- BaseHandlerCanUse objectlayer
- CGUnit_C::GetAutoMoveStopDistance objectlayer
- IsTargetInSpellRange spell
- ArmCastTargets spell
- SpellCanTargetObject spell
- SpellTargetLocationInRange spell
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ReadGuidAt objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- CGUnit_C::IsSpeedWithinTwiceWalk objectlayer
- ApplySpellModifierFloat spell
Calls and jumps by a bare address, from tables/calls.tsv.