【巅峰赛】拍脸修改 有表 张强提交

DESKTOP-98AVA47\Administrator 2020-12-24 21:02:20 +08:00
parent 3262a6203c
commit b11cf4dfe3
2 changed files with 8 additions and 6 deletions

View File

@ -154,13 +154,14 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
elseif v.Type == 6 then--巅峰战
local curState = ArenaTopMatchManager.GetBaseData().battleState
local battleStage = ArenaTopMatchManager.GetBaseData().battleStage
-- if battleStage and curState then
-- LogPink(" v.OpenRules[2] "..v.OpenRules[2].." curState "..curState.." type "..type.." battleStage "..battleStage.." v.Values "..v.Values)
-- else
-- LogPink(" v.OpenRules[2] "..v.OpenRules[2].." curState nil type "..type.." battleStage nil v.Values "..v.Values)
-- end
if battleStage and curState then
LogPink(" v.OpenRules[2] "..v.OpenRules[2].." curState "..curState.." type "..type.." battleStage "..battleStage.." v.Values "..v.Values)
else
LogPink(" v.OpenRules[2] "..v.OpenRules[2].." curState nil type "..type.." battleStage nil v.Values "..v.Values)
end
-- if v.OpenRules[2] == curState and type == 2 and battleStage >= v.Values then
if (curState and v.OpenRules[2] == curState) and type == 2 and (battleStage and battleStage >= v.Values) then--v.Values 2 > 1
--and type == 2
if (curState and curState >= v.OpenRules[2] and curState <= v.CloseRules[2]) and (battleStage and battleStage >= v.Values) then--v.Values 2 > 1
if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then
table.insert(patFaceAllData,v)
end

View File

@ -653,6 +653,7 @@ end
--界面关闭时调用(用于子类重写)
function FightPointPassMainPanel:OnClose()
PatFaceManager.isLogin = false
PlayerManager.StopBattleUpLvTipTime()
hasLoad = false
invadeMonster:OnClose()