fix bug
This commit is contained in:
parent
2e15e45ae0
commit
712905d9a1
@ -13,6 +13,7 @@ function FormationManager:upHeroToStageFormationFinish(result)
|
|||||||
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
if result.err_code == GConst.ERROR_STR.SUCCESS then
|
||||||
DataManager.FormationData:initStage(result.reqData.heroes)
|
DataManager.FormationData:initStage(result.reqData.heroes)
|
||||||
DataManager.HeroData:setDirty()
|
DataManager.HeroData:setDirty()
|
||||||
|
DataManager.HeroData:calcPower()
|
||||||
|
|
||||||
local data = {}
|
local data = {}
|
||||||
data.formation, data.formation_lv, data.formation_atk, data.formation_hp = DataManager.FormationData:getStageFormationBIStr()
|
data.formation, data.formation_lv, data.formation_atk, data.formation_hp = DataManager.FormationData:getStageFormationBIStr()
|
||||||
|
|||||||
@ -21,7 +21,7 @@ end
|
|||||||
|
|
||||||
function CompanyComp:refreshRedPoint()
|
function CompanyComp:refreshRedPoint()
|
||||||
if DataManager.TalentData:showRedPoint() then
|
if DataManager.TalentData:showRedPoint() then
|
||||||
self.talentBtn:addRedPoint(60, 80, 1)
|
self.talentBtn:addRedPoint(90, -80, 1)
|
||||||
else
|
else
|
||||||
self.talentBtn:removeRedPoint()
|
self.talentBtn:removeRedPoint()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user