Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 12883ed

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MY_Focus/src/MY_Focus.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,11 @@ function D.GetDisplayList()
883883
end
884884
if bRuleFocus then
885885
--2025.8.16增加隐藏焦点方法,上述规则满足后,判断最大距离是否为-1,若为-1不显示焦点并跳出规则遍历
886+
<<<<<<< HEAD
886887
bFocus = via.tRule.nMaxDistance ~= -1
888+
=======
889+
if via.tRule.nMaxDistance == -1 then bFocus = false else bFocus = true end
890+
>>>>>>> 4a64400cb (fix: 鐒︾偣鍒楄〃澧炲姞闅愯棌鐒︾偣鏂规硶锛屽綋婊¤冻瑙勫垯锛堣閲忕櫨鍒嗘瘮銆佺洰鏍囧叧绯伙級鏃讹紝鍒ゆ柇鏈�澶ц窛绂伙紙nMaxDistance锛夋槸鍚︿负-1锛岃嫢涓�-1鍒欎笉鏄剧ず鐒︾偣骞惰烦鍑哄悗缁鍒欓亶鍘嗐��)
887891
tRule = via.tRule
888892
szVia = via.szVia
889893
bDeletable = via.bDeletable

0 commit comments

Comments
 (0)