From bc2488c95d01710bf8a5d7ee9f5a547965c451d2 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 28 Jul 2023 10:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=AC=A1=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E5=9C=B0=E5=9B=BE=E6=80=AA=E7=89=A9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/game/damage.ts | 2 ++ src/plugin/game/itemDetail.ts | 1 + 2 files changed, 3 insertions(+) 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 = [];