Skip to content

Commit a0c4239

Browse files
ZXXX1999tinymins
authored andcommitted
fix: 焦点列表增加隐藏焦点方法,当满足规则(血量百分比、目标关系)时,判断最大距离(nMaxDistance)是否为-1,若为-1则不显示焦点并跳出后续规则遍历。
1 parent 1ad3186 commit a0c4239

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MY_Focus/src/MY_Focus.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,8 @@ function D.GetDisplayList()
882882
end
883883
end
884884
if bRuleFocus then
885-
bFocus = true
885+
--2025.8.16增加隐藏焦点方法,上述规则满足后,判断最大距离是否为-1,若为-1不显示焦点并跳出规则遍历
886+
if via.tRule.nMaxDistance == -1 then bFocus = false else bFocus = true end
886887
tRule = via.tRule
887888
szVia = via.szVia
888889
bDeletable = via.bDeletable

0 commit comments

Comments
 (0)