chore:微调checkBlock读取

This commit is contained in:
ShakeFlower 2026-02-24 18:37:28 +08:00
parent f2d43c159c
commit abd944b05d

View File

@ -900,7 +900,8 @@ maps.prototype._canMoveDirectly_checkNextPoint = function (blocksObj, x, y, floo
if (!ignore) return false;
}
const checkBlockInfo = core.control.getCheckBlock(floorId);
const checkBlockInfo = core.control.getCheckBlock ? core.control.getCheckBlock(floorId) :
core.status.checkBlock;
// 是否存在阻激夹域伤害
if (checkBlockInfo) {
if (checkBlockInfo.damage[index]) return false;