Fix canGoDeadZone of lockControl

This commit is contained in:
ckcz123 2020-08-20 09:32:20 +08:00
parent ce1968e158
commit aeeb73b5e4

View File

@ -592,7 +592,7 @@ maps.prototype._canMoveHero_checkPoint = function (x, y, direction, floorId, arr
return false; return false;
// 3. 检查是否能进将死的领域 // 3. 检查是否能进将死的领域
if (floorId == core.status.floorId && !core.flags.canGoDeadZone && if (floorId == core.status.floorId && !core.flags.canGoDeadZone && !core.status.lockControl &&
core.status.hero.hp <= (core.status.checkBlock.damage[nx + "," + ny]||0) core.status.hero.hp <= (core.status.checkBlock.damage[nx + "," + ny]||0)
&& arrays.eventArray[ny][nx] == 0) && arrays.eventArray[ny][nx] == 0)
return false; return false;