mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-02 07:13:51 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
86639f924d
commit
1303a297c0
@ -898,7 +898,7 @@ bool Bot::AIDoSpellCast(uint8 i, Mob* tar, int32 mana_cost, uint32* oDontDoAgain
|
||||
if (AIspells[i].type & SpellType_Escape) {
|
||||
dist2 = 0;
|
||||
} else
|
||||
dist2 = DistNoRoot(*tar);
|
||||
dist2 = ComparativeDistance(m_Position, tar->GetPosition());
|
||||
|
||||
if (((((spells[AIspells[i].spellid].targettype==ST_GroupTeleport && AIspells[i].type==2)
|
||||
|| spells[AIspells[i].spellid].targettype==ST_AECaster
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user