diff --git a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua index 0c6d67986a..4690a84a5f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Hero/HeroPropManager.lua @@ -351,29 +351,33 @@ function this.RefreshHeroProp(dId) LogPinkTable_Prop(propList) -- 条件属性 - if conList then - this.SetConditionData(dId, powerType, conList) - LogPink_Prop("con") - LogPinkTable_Prop(conList) + if not conList then + conList = {} end + this.SetConditionData(dId, powerType, conList) + LogPink_Prop("con") + LogPinkTable_Prop(conList) -- 对编队中其他人的数据 - if teamPropList then - this.SetTeamData(dId, powerType, teamPropList) - LogPink_Prop("team") - LogPinkTable_Prop(teamPropList) + if not teamPropList then + teamPropList = {} end + this.SetTeamData(dId, powerType, teamPropList) + LogPink_Prop("team") + LogPinkTable_Prop(teamPropList) -- 对编队中其他人的数据 - if conTeamList then - this.SetConditionTeamData(dId, powerType, conTeamList) - LogPink_Prop("conteam") - LogPinkTable_Prop(conTeamList) + if not conTeamList then + conTeamList = {} end + this.SetConditionTeamData(dId, powerType, conTeamList) + LogPink_Prop("conteam") + LogPinkTable_Prop(conTeamList) -- 减益属性 - if dePropList then - this.SetDePropData(dId, powerType, dePropList) - LogPink_Prop("deprop") - LogPinkTable_Prop(dePropList) + if not dePropList then + dePropList = {} end + this.SetDePropData(dId, powerType, dePropList) + LogPink_Prop("deprop") + LogPinkTable_Prop(dePropList) -- this.IsHeroDirty[dId][powerType] = false end