Skip to content

Commit a2ee042

Browse files
ZXXX1999tinymins
authored andcommitted
feat: 增加团队监控倒计时条强制设置nRefresh
1 parent 5d7b3c8 commit a2ee042

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MY_TeamMon/src/MY_TeamMon_SpellTimer.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,10 @@ local function CreateCountdown(nType, szKey, tParam, szSender, szReceiver)
146146
if ui and ui:IsValid() then
147147
ui.obj:RemoveItem()
148148
end
149+
-- 2025.08.25增加倒计时条强制设置nRefresh,nTime为-1,-2强制更改nRefresh
150+
ST_TIME_EXPIRE[nType][szKey] = nTime + (tParam.nRefresh or 0) * 1000
149151
elseif tTime.nTime == -2 then
150-
ST_TIME_EXPIRE[nType][szKey] = nil
152+
ST_TIME_EXPIRE[nType][szKey] = nTime + (tParam.nRefresh or 0) * 1000
151153
else
152154
local nExpire = ST_TIME_EXPIRE[nType][szKey]
153155
if nExpire and nExpire > nTime then

0 commit comments

Comments
 (0)