fix bug
This commit is contained in:
parent
a48c5a860a
commit
653c927780
@ -109,8 +109,7 @@ function HeroCell:refreshRedPoint()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not self.notShowRedPoint and
|
if not self.notShowRedPoint and DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) and self.heroEntity:showRedPointEntrance() then
|
||||||
DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) then
|
|
||||||
self.selfNode:addRedPoint(55, -35, 1)
|
self.selfNode:addRedPoint(55, -35, 1)
|
||||||
else
|
else
|
||||||
self.selfNode:removeRedPoint()
|
self.selfNode:removeRedPoint()
|
||||||
|
|||||||
@ -766,6 +766,10 @@ end
|
|||||||
--@endregion
|
--@endregion
|
||||||
|
|
||||||
--@region 红点
|
--@region 红点
|
||||||
|
function HeroEntity:showRedPointEntrance()
|
||||||
|
return self:canLvUp() or self:canStarUp()
|
||||||
|
end
|
||||||
|
|
||||||
function HeroEntity:showRedPoint(page)
|
function HeroEntity:showRedPoint(page)
|
||||||
if page == GConst.HeroConst.PANEL_TYPE.HERO then
|
if page == GConst.HeroConst.PANEL_TYPE.HERO then
|
||||||
return self:canLvUp()
|
return self:canLvUp()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user