From c4e746a2117a7e22a9ec181a57af6d816d640e4e Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Fri, 6 Jan 2023 22:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=AE=8C=E5=96=84=E5=AE=9A?= =?UTF-8?q?=E7=82=B9=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/ui/fixed.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugin/ui/fixed.ts b/src/plugin/ui/fixed.ts index f770ece..39f571b 100644 --- a/src/plugin/ui/fixed.ts +++ b/src/plugin/ui/fixed.ts @@ -55,6 +55,10 @@ export function getDetailedEnemy( if (toShowColor.length > 2) { toShowColor = toShowColor.slice(0, 2).concat(['#fff']); } + if (toShowSpecial.length === 0) { + toShowSpecial = ['无属性']; + toShowColor = ['#fff']; + } const damageColor = getDamageColor(enemyInfo.damage); const detail: DetailedEnemy = Object.assign(enemyInfo, { critical: critical[0][0],