From a628176640a43a1cbc83151d548c7997e1914117 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 18 Sep 2021 18:25:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E7=81=B5=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 675cda9b4dbd40ea85980b12518c026bb424d3b8) --- .../~Lua/Modules/MonsterCamp/MonsterCampManager.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua index 9c94bbe159..d5e0caded5 100644 --- a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua @@ -482,20 +482,20 @@ end function this.SetFriendHelpHero(helpFightList,trailType) if not trailType then for i = 1,4 do - local team = FormationManager.GetFormationByID(trailType + 3000) - if this.friendHelpHero and this.friendHelpHero[trailType] and this.friendHelpHero[trailType].hero then + local team = FormationManager.GetFormationByID(i + 3000) + if this.friendHelpHero and this.friendHelpHero[i] and this.friendHelpHero[i].hero then local newteam = {} for k,v in ipairs(team.teamHeroInfos) do - if v.heroId == this.friendHelpHero[trailType].hero.dynamicId then + if v.heroId == this.friendHelpHero[i].hero.dynamicId then else table.insert(newteam,v) end end if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then FormationManager.RefreshFormation( - trailType + 3000, + i + 3000, newteam, - FormationManager.formationList[trailType + 3000].teamPokemonInfos) + FormationManager.formationList[i + 3000].teamPokemonInfos) end end end