fix bug
This commit is contained in:
parent
70058e8cc6
commit
b378de406c
@ -54,7 +54,11 @@ function ChapterManager:endFight(id, combatReport)
|
|||||||
DataManager.ChapterData:goNextChapter()
|
DataManager.ChapterData:goNextChapter()
|
||||||
end
|
end
|
||||||
GFunc.addRewards(result.rewards, BIReport.ITEM_GET_TYPE.FIGHT_END)
|
GFunc.addRewards(result.rewards, BIReport.ITEM_GET_TYPE.FIGHT_END)
|
||||||
ModuleManager.BattleManager:showBattleResultUI(result.rewards, combatReport)
|
local newRewards = {}
|
||||||
|
if result.rewards then
|
||||||
|
GFunc.mergeRewards2(result.rewards, newRewards)
|
||||||
|
end
|
||||||
|
ModuleManager.BattleManager:showBattleResultUI(newRewards, combatReport)
|
||||||
DataManager.ChapterData:init(result.chapterData, true)
|
DataManager.ChapterData:init(result.chapterData, true)
|
||||||
DataManager.ChapterData:setDirty()
|
DataManager.ChapterData:setDirty()
|
||||||
end
|
end
|
||||||
|
|||||||
@ -97,6 +97,7 @@ function HeroCell:setGray(isGray)
|
|||||||
if self.isGray == isGray then
|
if self.isGray == isGray then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
self.isGray = isGray
|
||||||
self.icon:setImageGray(isGray)
|
self.icon:setImageGray(isGray)
|
||||||
self.matchImg:setImageGray(isGray)
|
self.matchImg:setImageGray(isGray)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user