【恭喜获得】背包已满会弹空的恭喜获得

dev_chengFeng
ZhangBiao 2021-05-10 16:12:09 +08:00
parent b4834ba2cc
commit 181306059d
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ function RewardItemPopup:OnOpen(...)
else
showHero = true
end
--如果没有compShowType和Drop
if not args[4] and not drop then
LogYellow("没有奖励没有类型,直接关闭")
return
end
local haveRecord = BattleRecordManager.isHaveRecord()
this.btnResult:SetActive(haveRecord and args[5])
this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT and not GuideManager.IsInMainGuide() and not MapManager.Mapping and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.TASUILINGXIAO)