mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Compare center distance against `40 + playerReach + targetReach` instead of a flat 40, reading each unit's bounding radius from `[m_objectFields + 0x1F0]` — the same per-unit size factor the engine's spell-range helper (FUN_006e3480) and the interact/loot range checks add. A 40-yard heal reaches a target whose center is slightly past 40 yards but whose body is within reach; the old flat cap reported those out-of-range. UnitDistanceSquared stays raw center-to-center, matching retail.