红点修改

This commit is contained in:
Fang 2023-07-27 12:02:48 +08:00
parent 7ffd2ee992
commit 9740e4b4f6

View File

@ -94,7 +94,8 @@ function HeroCell:refreshRedPoint()
if self.heroEntity == nil then if self.heroEntity == nil then
return return
end end
if DataManager.EquipData:canUpgradeEquip(self.heroEntity:getCfgId()) then
if DataManager.FormationData:heroInFormation(GConst.BattleConst.FORMATION_TYPE.STAGE, self.heroEntity:getCfgId()) and DataManager.EquipData:canUpgradeEquip(self.heroEntity:getCfgId()) then
self.selfNode:addRedPoint(55, -35, 0.64) self.selfNode:addRedPoint(55, -35, 0.64)
else else
self.selfNode:removeRedPoint() self.selfNode:removeRedPoint()