七界试炼bug修复

dev_chengFeng
yuanshuai 2023-05-08 15:00:52 +08:00
parent db1e9a9305
commit 9f4109c16f
2 changed files with 9 additions and 1 deletions

View File

@ -629,6 +629,15 @@ function this.ShowBattleResult(result, msg)
elseif BattleManager.GetLastBattleType() == BATTLE_TYPE.CHALLENG_COPY_1 or BattleManager.GetLastBattleType() == BATTLE_TYPE.CHALLENG_COPY_2 then
--只显示胜利界面
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 -- 胜利
UIManager.OpenPanel(UIName.BattleWinPopup, this, isBack, fightType, this.lastBattleResult)
end
else
LogRed("result:"..tostring(result))
if result == 0 then -- 失败

View File

@ -133,7 +133,6 @@ function this.ShowBattleResultByQiJie()
UIManager.OpenPanel(UIName.BattleBestPopup, bestData.roleId,bestData.skinId, bestData.damage, allDamage, function(_BattleBestPopup)
-- 打开关卡奖励界面
UIManager.OpenPanel(UIName.RewardItemPopup, QiJieShiLianManager.battleResult.drop, 1,function(isBackBattle)
PrivilegeManager.RefreshPrivilegeUsedTimes(3201, 1)--更新特权
if not isBackBattle then
if _BattleBestPopup then
_BattleBestPopup:ClosePanel()