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