diff --git a/Assets/Lua/UI/UIBattle/UIBattleView.lua b/Assets/Lua/UI/UIBattle/UIBattleView.lua index 09accd217..35fbf886d 100644 --- a/Assets/Lua/UI/UIBattle/UIBattleView.lua +++ b/Assets/Lua/UI/UIBattle/UIBattleView.lua @@ -182,7 +182,7 @@ function UIBattleView:RefreshStoryTaskInfo() table.sort(keys) for _, k in ipairs(keys) do local v = storyCfgV2[k] - if mapLevel >= v.MapLevel and v.MapLevel > tmpMapLevel then + if mapLevel > v.MapLevel and v.MapLevel > tmpMapLevel then currStoryId = v.StoryId tmpMapLevel = v.MapLevel end @@ -1246,7 +1246,6 @@ function UIBattleView:OnBattleWin() self.HeadsBoxPart:Hide() self.StatisticsPart:Hide() self.rageBoxGo:SetActive(false) - self:RefreshStoryTaskInfo() end function UIBattleView:OnBattleFailed(killboss, isPlayRecord) diff --git a/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua b/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua index a053afec2..f4f192ac1 100644 --- a/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua +++ b/Assets/Lua/UI/UIPlayStory/UIPlayStoryCtr.lua @@ -11,7 +11,7 @@ function UIPlayStoryCtr:SetData(data) local storyData = self.data local storyId = storyData.StoryId - local storyIntro = storyData.StoryIntro + local storyIntro = storyData.StoryIntro or {} local storyPerforms = ManagerContainer.CfgMgr:GetStoryPerformDataById(storyId) local cfgs = {}