From 6033aa61287b9f07d3e6a84f016962f9018a8de2 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 12 Nov 2021 18:18:50 +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=E6=9D=A1=E4=BB=B6=E5=B1=9E=E6=80=A7=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E4=B8=8D=E5=AE=8C=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Hero/HeroPropManager.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua index b7e4e46204..d8f1f9fc3a 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua @@ -490,7 +490,7 @@ end -- 获取自身的条件属性 function this.GetConditionProp(dId) -- 判空 - if this.IsConPropDirty[dId] then + if not this.IsConPropDirty[dId] then this.IsConPropDirty[dId] = {} end if this.IsConPropDirty[dId].isDirty ~= false then @@ -515,13 +515,15 @@ function this.GetConditionProp(dId) -- 合并所有属性 local condProp = this.GetConditionPropByType(dId, powerType) + LogRedTable_Prop(condProp) if condProp then DoubleTableCompound(list, condProp) - this.IsConPropDirty[dId][powerType] = condProp - this.ConPropList[dId].propList = condProp + -- this.IsConPropDirty[dId][powerType] = condProp + -- this.ConPropList[dId].propList = condProp end end this.IsConPropDirty[dId].isDirty = false + this.ConPropList[dId].propList = list end return this.ConPropList[dId].propList