Fixed climbing walls and stuck inside water.
Contributed by Sahar.
This commit is contained in:
		@@ -849,6 +849,10 @@
 | 
			
		||||
		<node X="43136" Y="169984" />
 | 
			
		||||
		<node X="44608" Y="170624" />
 | 
			
		||||
	</zone>
 | 
			
		||||
	<zone name="21_24_water1" type="WaterZone" shape="Cuboid" minZ="-4779" maxZ="-3779">
 | 
			
		||||
		<node X="32768" Y="196608" />
 | 
			
		||||
		<node X="65536" Y="229376" />
 | 
			
		||||
	</zone>
 | 
			
		||||
	<zone name="21_25_water1" type="WaterZone" shape="Cuboid" minZ="-4780" maxZ="-3780">
 | 
			
		||||
		<node X="32768" Y="229379" />
 | 
			
		||||
		<node X="65536" Y="262147" />
 | 
			
		||||
 
 | 
			
		||||
@@ -3420,7 +3420,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