Skip to content

Commit ba91350

Browse files
authored
feat: 增加团队监控倒计时条强制设置nRefresh (#82)
1 parent bce861a commit ba91350

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MY_TeamMon/src/MY_TeamMon_SpellTimer.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ 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,为兼容旧数据,先判断有nRefresh字段再修改
150+
if tParam.nRefresh then
151+
ST_TIME_EXPIRE[nType][szKey] = nTime + tParam.nRefresh * 1000 - 3
152+
end
149153
elseif tTime.nTime == -2 then
150-
ST_TIME_EXPIRE[nType][szKey] = nil
154+
ST_TIME_EXPIRE[nType][szKey] = nTime + (tParam.nRefresh or 0) * 1000 - 3
151155
else
152156
local nExpire = ST_TIME_EXPIRE[nType][szKey]
153157
if nExpire and nExpire > nTime then

0 commit comments

Comments
 (0)