Fixed climbing walls and stuck inside water.
Contributed by Sahar.
This commit is contained in:
		@@ -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;
 | 
			
		||||
						// }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user