Fixed climbing walls and stuck inside water.
Contributed by Sahar.
This commit is contained in:
@@ -5576,7 +5576,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceId());
|
||||
if ((m.geoPath == null) || (m.geoPath.size() < 2)) // No path found
|
||||
{
|
||||
// if ((isPlayer()) || (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140)) || (isSummon() && !((Summon) this).getFollowStatus()))
|
||||
if (isPlayer() && !_isFlying && !isInWater)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// if (!isPlayable() && !isMinion() && (Math.abs(z - curZ) > 140))
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// if (isSummon() && !((Summon) this).getFollowStatus())
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
|
Reference in New Issue
Block a user