mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 04:07:39 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
+1
-1
@@ -401,7 +401,7 @@ bool EntityList::AICheckCloseBeneficialSpells(NPC* caster, uint8 iChance, float
|
|||||||
if (t1 > iRange
|
if (t1 > iRange
|
||||||
|| t2 > iRange
|
|| t2 > iRange
|
||||||
|| t3 > iRange
|
|| t3 > iRange
|
||||||
|| mob->DistNoRoot(*caster) > iRange2
|
|| ComparativeDistance(mob->GetPosition(), caster->GetPosition()) > iRange2
|
||||||
//this call should seem backwards:
|
//this call should seem backwards:
|
||||||
|| !mob->CheckLosFN(caster)
|
|| !mob->CheckLosFN(caster)
|
||||||
|| mob->GetReverseFactionCon(caster) >= FACTION_KINDLY
|
|| mob->GetReverseFactionCon(caster) >= FACTION_KINDLY
|
||||||
|
|||||||
Reference in New Issue
Block a user