diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua index 983ec2546b..0c6d67986a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua @@ -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 -- 刷新编队属性