mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 02:12:25 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
53ad34b060
commit
94261700d9
@ -2344,7 +2344,7 @@ bool Mob::ApplyNextBardPulse(uint16 spell_id, Mob *spell_target, uint16 slot) {
|
|||||||
range = GetActSpellRange(spell_id, spells[spell_id].range, true);
|
range = GetActSpellRange(spell_id, spells[spell_id].range, true);
|
||||||
if(spell_target != nullptr && spell_target != this) {
|
if(spell_target != nullptr && spell_target != this) {
|
||||||
//casting a spell on somebody but ourself, make sure they are in range
|
//casting a spell on somebody but ourself, make sure they are in range
|
||||||
float dist2 = DistNoRoot(*spell_target);
|
float dist2 = ComparativeDistance(m_Position, spell_target->GetPosition());
|
||||||
float range2 = range * range;
|
float range2 = range * range;
|
||||||
if(dist2 > range2) {
|
if(dist2 > range2) {
|
||||||
//target is out of range.
|
//target is out of range.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user