Fixed climbing walls and stuck inside water.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2021-03-06 10:18:20 +00:00
parent a984c97386
commit dce5c98285
31 changed files with 239 additions and 23 deletions

View File

@@ -3398,7 +3398,15 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
m.geoPath = GeoEnginePathfinding.getInstance().findPath(curX, curY, curZ, originalX, originalY, originalZ, getInstanceWorld());
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;
// }