【战斗力】修复条件属性计算不完全的问题

dev_chengFeng
gaoxin 2021-11-12 18:18:50 +08:00
parent 83583747ad
commit 6033aa6128
1 changed files with 5 additions and 3 deletions

View File

@ -490,7 +490,7 @@ end
-- 获取自身的条件属性 -- 获取自身的条件属性
function this.GetConditionProp(dId) function this.GetConditionProp(dId)
-- 判空 -- 判空
if this.IsConPropDirty[dId] then if not this.IsConPropDirty[dId] then
this.IsConPropDirty[dId] = {} this.IsConPropDirty[dId] = {}
end end
if this.IsConPropDirty[dId].isDirty ~= false then if this.IsConPropDirty[dId].isDirty ~= false then
@ -515,13 +515,15 @@ function this.GetConditionProp(dId)
-- 合并所有属性 -- 合并所有属性
local condProp = this.GetConditionPropByType(dId, powerType) local condProp = this.GetConditionPropByType(dId, powerType)
LogRedTable_Prop(condProp)
if condProp then if condProp then
DoubleTableCompound(list, condProp) DoubleTableCompound(list, condProp)
this.IsConPropDirty[dId][powerType] = condProp -- this.IsConPropDirty[dId][powerType] = condProp
this.ConPropList[dId].propList = condProp -- this.ConPropList[dId].propList = condProp
end end
end end
this.IsConPropDirty[dId].isDirty = false this.IsConPropDirty[dId].isDirty = false
this.ConPropList[dId].propList = list
end end
return this.ConPropList[dId].propList return this.ConPropList[dId].propList