From a668881fd88b970b87f18961355d1b2b4253c615 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Fri, 12 Jun 2020 22:16:31 +0800 Subject: [PATCH] Fix changePos --- libs/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/events.js b/libs/events.js index d74cda20..31e737c0 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1498,7 +1498,7 @@ events.prototype._action_changeFloor = function (data, x, y, prefix) { events.prototype._action_changePos = function (data, x, y, prefix) { core.clearMap('hero'); - if (data.x == null && data.y == null && data.direction) { + if (!data.loc && data.direction) { core.setHeroLoc('direction', core.turnDirection(data.direction), true); core.drawHero(); return core.doAction();