七界试炼输了也消耗挑战次数bug修复

dev_chengFeng
yuanshuai 2023-05-10 14:31:18 +08:00
parent b02ebc8b22
commit 4ece26aaf4
1 changed files with 1 additions and 1 deletions

View File

@ -630,12 +630,12 @@ function this.ShowBattleResult(result, msg)
--只显示胜利界面
UIManager.OpenPanel(UIName.BattleWinPopup, this, isBack, fightType, this.lastBattleResult)
elseif BattleManager.GetLastBattleType()==BATTLE_TYPE.QIJIE_FIGHT then
PrivilegeManager.RefreshPrivilegeUsedTimes(3201, 1)--更新特权
LogRed("result:"..tostring(result))
if result == 0 then -- 失败
local haveRecord = BattleRecordManager.isHaveRecord()
UIManager.OpenPanel(UIName.BattleFailPopup, this, haveRecord,nil,fightType)
else -- 胜利
PrivilegeManager.RefreshPrivilegeUsedTimes(3201, 1)--更新特权
UIManager.OpenPanel(UIName.BattleWinPopup, this, isBack, fightType, this.lastBattleResult)
end
else