From f62375ebe2609bb1ff6c139d4f2cde2a48df5420 Mon Sep 17 00:00:00 2001 From: chotgpt Date: Thu, 8 Oct 2026 15:21:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=88=98=E6=96=97=E6=B5=AE=E5=8A=A8?= =?UTF-8?q?=E6=96=87=E5=AD=97):=20=E9=85=8D=E7=BD=AE=E4=BA=86=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E5=BC=B9=E5=87=BA=E5=90=8D=E7=A7=B0=E7=9A=84=20BUFF?= =?UTF-8?q?=20=E4=B8=8D=E5=86=8D=E9=A3=98=E8=8E=B7=E5=BE=97=E6=96=87?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 官方 BUFF 表有「隐藏弹出名称」字段 (bHideAddName),官方界面已按它隐藏, 插件之前不认,淬体珠等 BUFF 的获得飘字一直在刷屏,玩家反馈影响观感。 OnSkillBuff 里补上这个判断,配置了该字段的 BUFF 不再创建获得飘字。 --- MY_CombatText/src/MY_CombatText.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MY_CombatText/src/MY_CombatText.lua b/MY_CombatText/src/MY_CombatText.lua index 67e14267d..ec52fb5ab 100644 --- a/MY_CombatText/src/MY_CombatText.lua +++ b/MY_CombatText/src/MY_CombatText.lua @@ -21,7 +21,7 @@ end -------------------------------------------------------------------------- local SKILL_RESULT_TYPE = SKILL_RESULT_TYPE local GetSkill, Random = GetSkill, Random -local Table_GetBuffName, Table_GetSkillName, Table_BuffIsVisible = Table_GetBuffName, Table_GetSkillName, Table_BuffIsVisible +local Table_GetBuff, Table_GetBuffName, Table_GetSkillName, Table_BuffIsVisible = Table_GetBuff, Table_GetBuffName, Table_GetSkillName, Table_BuffIsVisible -- ս¶·¸¡¶¯ÎÄ×ÖÉè¼Æ˼· --[[ @@ -1090,6 +1090,10 @@ function D.OnSkillBuff(dwCharacterID, bCanCancel, dwID, nLevel) if not Table_BuffIsVisible(dwID, nLevel) then return end + local tBuff = Table_GetBuff(dwID, nLevel) + if tBuff and tBuff.bHideAddName and tBuff.bHideAddName ~= 0 then + return + end local szBuffName = Table_GetBuffName(dwID, nLevel) if szBuffName == '' then return