From a60d504ad1295ea47aacbd6e6b524cddce85c1cd Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Wed, 18 Apr 2018 19:20:52 +0000 Subject: [PATCH] Fixed monsters getting stuck to obstacles. --- .../com/l2jmobius/gameserver/ai/L2AttackableAI.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2AttackableAI.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2AttackableAI.java index ddfd241fc8..ef4e2dd8d3 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2AttackableAI.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/ai/L2AttackableAI.java @@ -940,10 +940,12 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable if (!npc.isInsideRadius(newX, newY, 0, collision, false, false)) { final int newZ = npc.getZ() + 30; - if (GeoEngine.getInstance().canMoveToTarget(npc.getX(), npc.getY(), npc.getZ(), newX, newY, newZ, npc.getInstanceId())) - { - moveTo(newX, newY, newZ); - } + + // fixes monsters not avoiding obstacles + // if (GeoEngine.getInstance().canMoveToTarget(npc.getX(), npc.getY(), npc.getZ(), newX, newY, newZ, npc.getInstanceId())) + // { + moveTo(newX, newY, newZ); + // } } return; }