From eaadbcc4feaeeb60fcec2546964fc2d7eede0db3 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Thu, 13 Feb 2025 20:25:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=87=AA=E5=8A=A8=E6=8B=BE=E5=8F=96?= =?UTF-8?q?=E7=A6=81=E6=AD=A2=E7=A9=BF=E8=BF=87=E6=BB=91=E5=86=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/maps.js | 2 +- project/plugins.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/maps.js b/libs/maps.js index bb329df6..0544557c 100644 --- a/libs/maps.js +++ b/libs/maps.js @@ -675,7 +675,7 @@ maps.prototype.getFgMapArray = function (floorId) { maps.prototype._getBgFgNumber = function (name, x, y, floorId) { if (x == null) x = core.getHeroLoc('x'); if (y == null) y = core.getHeroLoc('y'); - return this._getBgFgMapArray(name, floorId)[y][x]; + return this._getBgFgMapArray(name, floorId)[x][y]; } maps.prototype.getBgNumber = function (x, y, floorId) { diff --git a/project/plugins.js b/project/plugins.js index 4f8c8278..af1123fe 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2002,7 +2002,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = const changeFloor = floor.changeFloor[loc]; const isEnemy = autoBattle && cls.startsWith('enemy'), isItem = autoGet && cls === 'items'; - + if (core.onSki(core.getBgNumber(x, y))) return false; if (has(changeFloor)) { if (!core.noPass(tx, ty, floorId) && !core.canMoveHero(nx, ny, dir)) { return false;