From eacf753e55575bb58a8a4bc83539fadd330dcc7e Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 27 Sep 2021 17:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E5=8A=9B=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E8=AE=BE=E7=BD=AE=E4=BA=BA?= =?UTF-8?q?=E7=89=A9=E5=B1=9E=E6=80=A7=E5=85=A8=E9=83=A8=E4=B8=BA=E8=84=8F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=88=98=E6=96=97=E5=8A=9B=E8=84=8F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 -- 刷新编队属性