mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
fear_walkto_x, fear_walkto_y, fear_walkto_z replaced with m_FearWalkTarget converted to xyz_location
This commit is contained in:
+2
-10
@@ -167,9 +167,7 @@ void Mob::CalculateNewFearpoint()
|
||||
|
||||
if(Route.size() > 0)
|
||||
{
|
||||
fear_walkto_x = Loc.x;
|
||||
fear_walkto_y = Loc.y;
|
||||
fear_walkto_z = Loc.z;
|
||||
m_FearWalkTarget = xyz_location(Loc.x, Loc.y, Loc.z);
|
||||
curfp = true;
|
||||
|
||||
mlog(PATHING__DEBUG, "Feared to node %i (%8.3f, %8.3f, %8.3f)", Node, Loc.x, Loc.y, Loc.z);
|
||||
@@ -199,14 +197,8 @@ void Mob::CalculateNewFearpoint()
|
||||
}
|
||||
}
|
||||
if (curfp)
|
||||
{
|
||||
fear_walkto_x = ranx;
|
||||
fear_walkto_y = rany;
|
||||
fear_walkto_z = ranz;
|
||||
}
|
||||
m_FearWalkTarget = xyz_location(ranx, rany, ranz);
|
||||
else //Break fear
|
||||
{
|
||||
BuffFadeByEffect(SE_Fear);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user