diff --git a/src/plugin/game/damage.ts b/src/plugin/game/damage.ts index 86fd0ce..2120b73 100644 --- a/src/plugin/game/damage.ts +++ b/src/plugin/game/damage.ts @@ -75,6 +75,7 @@ interface CriticalDamageDelta extends Omit { type HaloFn = (info: EnemyInfo, enemy: Enemy) => void; type DamageDir = Dir | 'none'; +/** 光环属性 */ export const haloSpecials: number[] = [8, 21, 25, 26, 27]; export class EnemyCollection implements RangeCollection { @@ -94,6 +95,7 @@ export class EnemyCollection implements RangeCollection { * 解析本地图的怪物信息 */ extract() { + this.list = []; core.extractBlocks(this.floorId); core.status.maps[this.floorId].blocks.forEach(v => { if (v.event.cls !== 'enemy48' && v.event.cls !== 'enemys') return; diff --git a/src/plugin/game/itemDetail.ts b/src/plugin/game/itemDetail.ts index 1079741..37a0e2b 100644 --- a/src/plugin/game/itemDetail.ts +++ b/src/plugin/game/itemDetail.ts @@ -18,6 +18,7 @@ core.control.updateDamage = function (floorId = core.status.floorId, ctx) { // 计算伤害 ensureFloorDamage(floorId); + floor.enemy.extract(); floor.enemy.calDamage(true, onMap); floor.enemy.calMapDamage(); core.status.damage.data = [];