mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
0088d353d3
commit
f047ed232d
@ -67,7 +67,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
|||||||
dist2 = 0; //DistNoRoot(*this); //WTF was up with this...
|
dist2 = 0; //DistNoRoot(*this); //WTF was up with this...
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
dist2 = DistNoRoot(*tar);
|
dist2 = ComparativeDistance(m_Position, tar->GetPosition());
|
||||||
|
|
||||||
bool checked_los = false; //we do not check LOS until we are absolutely sure we need to, and we only do it once.
|
bool checked_los = false; //we do not check LOS until we are absolutely sure we need to, and we only do it once.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user