From ddb85de997de21764c38a3201f5c8c83d242dbdb Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Mon, 27 Aug 2018 18:35:28 +0800 Subject: [PATCH] Fix dead zone --- libs/maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/maps.js b/libs/maps.js index 2e3a9c4f..be5e9f88 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -276,7 +276,7 @@ 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) + if (core.status.hero.hp <= core.status.checkBlock.damage[nx+core.bigmap.width*ny] && !core.flags.canGoDeadZone && core.getBlock(nx, ny, floorId)==null) return false; return true;