From 3c1986c71cf597244ac6d76a83dbc01d4ef1cb1c Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Fri, 1 Apr 2022 18:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A5=9E=E9=AD=82=E3=80=91=3D=3D=3D?= =?UTF-8?q?=3D=3D=E7=A5=9E=E9=AD=82=E5=8D=87=E7=BA=A7=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E7=A5=9E=E7=B3=BB=E8=BD=AC=E6=8D=A2=E8=81=8C=E4=B8=9A=E7=9A=84?= =?UTF-8?q?=E8=8B=B1=E9=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/GodSoul/GodSoulManager.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua b/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua index ffbf528c4c..5c204ac795 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodSoul/GodSoulManager.lua @@ -306,18 +306,18 @@ function this.GetGodSoulData(curHeroData,lv,conditionIndex) index = 0 break elseif (v.star >= godData[j].star) and godData[j].id < 1 then - if (godData[j].property > 0 and v.property == godData[j].property) + if (godData[j].property > 0 and v.heroConfig.PropertyName == godData[j].property) or (godData[j].profession > 0 and v.profession == godData[j].profession) or (godData[j].property == 0 and godData[j].profession == 0) then if index == -1 then index = 0 end end - if (godData[j].property > 0 and v.property == godData[j].property) then + if (godData[j].property > 0 and v.heroConfig.PropertyName == godData[j].property) then index = index + 1 elseif (godData[j].profession > 0 and v.profession == godData[j].profession) then index = index + 1 - elseif godData[j].property == 0 and godData[j].profession == 0 then + elseif godData[j].property== 0 and godData[j].profession == 0 then index = index + 1 end else