From 8c0dd3a9b0865f6cb60f7bd03c75ef3fbf6108b0 Mon Sep 17 00:00:00 2001 From: wangzhenxing <1545929779@qq.com> Date: Thu, 14 Dec 2023 17:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BC=E7=89=A9=E6=B7=BB=E5=8A=A0=E7=A9=BA?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/ManagedResources/~Lua/Modules/Gem/GiftManager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Gem/GiftManager.lua b/Assets/ManagedResources/~Lua/Modules/Gem/GiftManager.lua index a28f237b93..e83c92a15b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Gem/GiftManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Gem/GiftManager.lua @@ -194,7 +194,7 @@ function this.GetHeroPotencyLvById(did) if this.playerGifts and #this.playerGifts>0 then for i=1,#this.playerGifts do local id=this.playerGifts[i] - if equipConfig[id] and equipConfig[id].PotentialNew and #equipConfig[id].PotentialNew>0 then + if equipConfig[id] and equipConfig[id].PotentialNew and #equipConfig[id].PotentialNew>0 and type(equipConfig[id].PotentialNew[1])~="userdata" then lv=lv+equipConfig[id].PotentialNew[2] end end @@ -203,7 +203,7 @@ function this.GetHeroPotencyLvById(did) local list=this.allHeroGifts[did] for i=1,#list do local id=list[i] - if equipConfig[id] and equipConfig[id].PotentialNew and #equipConfig[id].PotentialNew>0 then + if equipConfig[id] and equipConfig[id].PotentialNew and #equipConfig[id].PotentialNew>0 and type(equipConfig[id].PotentialNew[1])~="userdata" then lv=lv+equipConfig[id].PotentialNew[2] end end