bug修复

This commit is contained in:
xiekaidong 2023-06-01 16:35:23 +08:00
parent 30908425ca
commit 9429f79a1e
2 changed files with 6 additions and 0 deletions

View File

@ -349,6 +349,11 @@ function BattleUI:showBuffTips(buffList, autoClose)
index = index + 1
end
end
if index <= 1 then -- 没有找到buff
self.battleBuffTipsRoot:setLocalScale(0, 0, 0)
return
end
for i = index, #self.battleBuffTipsBuffList do
self.battleBuffTipsBuffList[i]:setLocalScale(0, 0, 0)
end

View File

@ -12,6 +12,7 @@ end
function DailyChallengeData:init(data)
if EDITOR_MODE then
Logger.logHighlight("每日挑战 更新数据...")
Logger.printTable(data)
end
data = data or GConst.EMPTY_TABLE
self.maxWave = data.max_wave or 0