Fix 2.8
This commit is contained in:
parent
517cc9ea9d
commit
da9f5a6c8e
@ -461,7 +461,7 @@ enemys.prototype.hasEnemyLeft = function (enemyId, floorId) {
|
|||||||
var mapBlocks = core.status.maps[floorId[i]].blocks;
|
var mapBlocks = core.status.maps[floorId[i]].blocks;
|
||||||
for (var b = 0; b < mapBlocks.length; b++) {
|
for (var b = 0; b < mapBlocks.length; b++) {
|
||||||
if (!mapBlocks[b].disable && mapBlocks[b].event.cls.indexOf('enemy') === 0) {
|
if (!mapBlocks[b].disable && mapBlocks[b].event.cls.indexOf('enemy') === 0) {
|
||||||
if (enemyMap === null || enemyMap[mapBlocks[b].event.id]) return true;
|
if (enemyMap === null || enemyMap[core.getFaceDownId(mapBlocks[b])]) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
runtime.d.ts
vendored
2
runtime.d.ts
vendored
@ -1827,7 +1827,7 @@ declare class maps {
|
|||||||
getBlockInfo(block?: any): any
|
getBlockInfo(block?: any): any
|
||||||
|
|
||||||
/** 获得某个图块对应行走图朝向向下的那一项的id;如果不存在行走图绑定则返回自身id */
|
/** 获得某个图块对应行走图朝向向下的那一项的id;如果不存在行走图绑定则返回自身id */
|
||||||
getFaceDownIds(block?: any): string
|
getFaceDownId(block?: any): string
|
||||||
|
|
||||||
/** 根据图块的索引来隐藏图块 */
|
/** 根据图块的索引来隐藏图块 */
|
||||||
hideBlockByIndex(index?: any, floorId?: string): void
|
hideBlockByIndex(index?: any, floorId?: string): void
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user