mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-14 07:42:29 +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) {
|
if (AIspells[i].type & SpellType_Escape) {
|
||||||
dist2 = 0;
|
dist2 = 0;
|
||||||
} else
|
} else
|
||||||
dist2 = DistNoRoot(*tar);
|
dist2 = ComparativeDistance(m_Position, tar->GetPosition());
|
||||||
|
|
||||||
if (((((spells[AIspells[i].spellid].targettype==ST_GroupTeleport && AIspells[i].type==2)
|
if (((((spells[AIspells[i].spellid].targettype==ST_GroupTeleport && AIspells[i].type==2)
|
||||||
|| spells[AIspells[i].spellid].targettype==ST_AECaster
|
|| spells[AIspells[i].spellid].targettype==ST_AECaster
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user