mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 07:32:40 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
90e011ad99
commit
69a6a6f3f8
@ -1513,7 +1513,7 @@ void Merc::AI_Process() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(!IsMoving() && GetClass() != ROGUE && (DistNoRootNoZ(*GetTarget()) < GetTarget()->GetSize()))
|
else if(!IsMoving() && GetClass() != ROGUE && (ComparativeDistanceNoZ(m_Position, GetTarget()->GetPosition()) < GetTarget()->GetSize()))
|
||||||
{
|
{
|
||||||
// If we are not a rogue trying to backstab, let's try to adjust our melee range so we don't appear to be bunched up
|
// If we are not a rogue trying to backstab, let's try to adjust our melee range so we don't appear to be bunched up
|
||||||
float newX = 0;
|
float newX = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user