mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 14:02:26 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
262ae383c9
commit
815a208492
@ -3505,7 +3505,7 @@ void Bot::AI_Process() {
|
|||||||
if(IsBotCasterCombatRange(GetTarget()))
|
if(IsBotCasterCombatRange(GetTarget()))
|
||||||
atCombatRange = true;
|
atCombatRange = true;
|
||||||
}
|
}
|
||||||
else if(DistNoRoot(*GetTarget()) <= meleeDistance) {
|
else if(ComparativeDistance(m_Position, GetTarget()->GetPosition()) <= meleeDistance) {
|
||||||
atCombatRange = true;
|
atCombatRange = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user