From 4a494fac119a46a4df9807036a23a3e34da8b8ab Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 18 Sep 2021 18:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=88=B7=E6=96=B0=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E7=BC=96=E9=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/MonsterCamp/MonsterCampManager.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua index f2694177e0..9c94bbe159 100644 --- a/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/MonsterCamp/MonsterCampManager.lua @@ -481,6 +481,24 @@ 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 newteam = {} + for k,v in ipairs(team.teamHeroInfos) do + if v.heroId == this.friendHelpHero[trailType].hero.dynamicId then + else + table.insert(newteam,v) + end + end + if LengthOfTable(newteam) ~= LengthOfTable(team.teamHeroInfos) then + FormationManager.RefreshFormation( + trailType + 3000, + newteam, + FormationManager.formationList[trailType + 3000].teamPokemonInfos) + end + end + end this.friendHelpHero = {} for k,v in ipairs(helpFightList) do if not this.friendHelpHero[v.trailType] then