From 307c8734550a08175587da2248aafc98ec6dc4a5 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Fri, 5 Apr 2024 22:08:06 +0800 Subject: [PATCH] =?UTF-8?q?chooseToUse/chooseToRespond=E9=92=88=E5=AF=B9?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E5=9E=8BlogSkill=E5=8F=96=E6=B6=88=E5=8F=91?= =?UTF-8?q?=E5=8A=A8=E7=9A=84bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 国战春哥【清冷】bug来源 --- noname/library/element/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noname/library/element/content.js b/noname/library/element/content.js index b80ed762a..f02c00d27 100644 --- a/noname/library/element/content.js +++ b/noname/library/element/content.js @@ -3267,7 +3267,7 @@ export const Content = { event.result._sendskill = event._sendskill; } if ((!event.result || !event.result.bool || event.result._noHidingTimer) && (event.result.skill || event.logSkill)) { - var info = get.info(event.result.skill || event.logSkill); + var info = get.info(event.result.skill || (Array.isArray(event.logSkill) ? event.logSkill[0] : event.logSkill)); if (info.direct && !info.clearTime) { _status.noclearcountdown = 'direct'; } @@ -3454,11 +3454,11 @@ export const Content = { if (event.result._sendskill) { lib.skill[event.result._sendskill[0]] = event.result._sendskill[1]; } - var info = get.info(event.result.skill); if (event.onresult) { event.onresult(event.result); } if ((!event.result || !event.result.bool || event.result._noHidingTimer) && (event.result.skill || event.logSkill)) { + var info = get.info(event.result.skill || (Array.isArray(event.logSkill) ? event.logSkill[0] : event.logSkill)); if (info.direct && !info.clearTime) { _status.noclearcountdown = 'direct'; }