From 43ce2de8043e0fb2a1e78d849040064acb813c11 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Sat, 13 Jun 2020 10:10:35 +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 29467243..6ec1b4e8 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1488,7 +1488,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();