【战斗力】修复部分设置人物属性全部为脏数据时没有设置战斗力脏数据

dev_chengFeng
gaoxin 2021-09-27 17:35:36 +08:00
parent f929826eba
commit eacf753e55
1 changed files with 2 additions and 5 deletions

View File

@ -424,6 +424,8 @@ end
-- 将整个人置为脏数据
function this.SetHeroDirty(dId)
this.IsHeroDirty[dId] = {}
-- 战斗力需要重新计算
HeroPowerManager.SetPowerDirty(dId)
end
@ -442,9 +444,6 @@ function this.SetConditionData(dId, powerType, condList)
end
this.IsConPropDirty[dId][powerType] = true
this.IsConPropDirty[dId].isDirty = true
-- 战斗力需要重新计算
HeroPowerManager.SetPowerDirty(dId)
end
function this.SetConditionProp(dId, powerType, condProp)
@ -518,8 +517,6 @@ function this.SetTeamData(dId, powerType, propList)
this.IsTeamPropDirty[dId] = {}
end
this.IsTeamPropDirty[dId].isDirty = true
-- 战斗力需要重新计算
HeroPowerManager.SetPowerDirty(dId)
end
-- 刷新编队属性