From 0b548955c4681c633a379d6ecbf144bad0b28942 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sun, 25 Feb 2018 14:24:32 +0800 Subject: [PATCH] Fix Move Directly Bug --- libs/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core.js b/libs/core.js index df506406..699806ad 100644 --- a/libs/core.js +++ b/libs/core.js @@ -1560,7 +1560,7 @@ core.prototype.setAutomaticRoute = function (destX, destY, stepPostfix) { if (lastX==destX && lastY==destY) { core.status.automaticRoute.moveDirectly = true; setTimeout(function () { - if (core.status.automaticRoute.moveDirectly) { + if (core.status.automaticRoute.moveDirectly && core.status.heroMoving==0) { if (core.canMoveDirectly(destX, destY)) { core.clearMap('hero', 0, 0, 416, 416); core.setHeroLoc('x', destX); @@ -1570,7 +1570,7 @@ core.prototype.setAutomaticRoute = function (destX, destY, stepPostfix) { } } core.status.automaticRoute.moveDirectly = false; - }, 200); + }, 100); } return; }