fix:自动拾取禁止穿过滑冰
This commit is contained in:
parent
0f4441b510
commit
eaadbcc4fe
@ -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) {
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user