Fix from 秋橙

This commit is contained in:
ckcz123 2021-08-07 11:30:23 +08:00
parent 16b4bbfa2a
commit 4dc01bb07e

View File

@ -1325,7 +1325,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
if (rnx < 0 || rnx >= width || rny < 0 || rny >= height) continue; if (rnx < 0 || rnx >= width || rny < 0 || rny >= height) continue;
// 如需禁止阻击被推到已隐藏的事件处如重生怪处可将这一句的false改为true // 如需禁止阻击被推到已隐藏的事件处如重生怪处可将这一句的false改为true
if (core.getBlock(rnx, rny, floorId, false) != null) continue; if (core.getBlock(rnx, rny, floorId, false) != null) continue;
if (core.utils.scan[rdir] && core.canMoveHero(x, y, rdir, floorId)) continue; if (core.utils.scan[rdir] && !core.canMoveHero(x, y, rdir, floorId)) continue;
repulse[currloc] = (repulse[currloc] || []).concat([ repulse[currloc] = (repulse[currloc] || []).concat([
[x, y, id, rdir] [x, y, id, rdir]
]); ]);