Fix changePos

This commit is contained in:
ckcz123 2020-06-12 22:16:31 +08:00
parent 1b1b46fa6d
commit a668881fd8

View File

@ -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();