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;