四灵 修改提交

(cherry picked from commit 675cda9b4d)
dev_chengFeng
jiaoyangna 2021-09-18 18:25:22 +08:00
parent 4a494fac11
commit a628176640
1 changed files with 5 additions and 5 deletions

View File

@ -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