From 484d6ba32719bce79e5aa0158ac16c409b76c629 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Mon, 27 Aug 2018 18:36:38 +0800 Subject: [PATCH] Fix dead zone --- libs/maps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/maps.js b/libs/maps.js index be5e9f88..32d01cf3 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -276,7 +276,8 @@ maps.prototype.canMoveHero = function(x,y,direction,floorId) { } // 检查将死的领域 - if (core.status.hero.hp <= core.status.checkBlock.damage[nx+core.bigmap.width*ny] && !core.flags.canGoDeadZone && core.getBlock(nx, ny, floorId)==null) + if (floorId==core.status.floorId && core.status.hero.hp <= core.status.checkBlock.damage[nx+core.bigmap.width*ny] + && !core.flags.canGoDeadZone && core.getBlock(nx, ny)==null) return false; return true;