Fixed monsters getting stuck to obstacles.

This commit is contained in:
MobiusDev
2017-08-28 00:51:06 +00:00
parent bbf9bb1789
commit ca83003181
9 changed files with 252 additions and 316 deletions

View File

@@ -998,7 +998,8 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
}
}
return GeoEngine.getInstance().canMoveToTarget(npc.getX(), npc.getY(), npc.getZ(), target.getX(), target.getY(), target.getZ(), npc.getInstanceWorld());
// fixes monsters not avoiding obstacles
return true; // GeoEngine.getInstance().canMoveToTarget(npc.getX(), npc.getY(), npc.getZ(), target.getX(), target.getY(), target.getZ(), npc.getInstanceWorld());
}
private L2Character skillTargetReconsider(Skill skill, boolean insideCastRange)