From e39bbe2dc1f34e1a5094e6e814f0e13d6325106d Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 4 Nov 2021 18:53:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=BD=A9=E8=BE=95=E5=AE=9D=E9=95=9C?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=A6=82=E6=9E=9C=E7=8E=A9=E5=AE=B6?= =?UTF-8?q?=E6=9C=89=E4=B8=A4=E4=B8=AA=E7=9B=B8=E5=90=8C=E7=9A=84=E6=88=98?= =?UTF-8?q?=E5=8A=9B=E8=BE=83=E9=AB=98=E7=9A=84=E7=A5=9E=E5=B0=86=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E5=B0=91=E4=B8=8A=E9=98=B5=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E4=BD=8D=E7=BD=AE=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Formation/View/XuanYuanMirrorFormation.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/View/XuanYuanMirrorFormation.lua b/Assets/ManagedResources/~Lua/Modules/Formation/View/XuanYuanMirrorFormation.lua index 77f5042a88..5fa1d61ff1 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/View/XuanYuanMirrorFormation.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/View/XuanYuanMirrorFormation.lua @@ -72,9 +72,11 @@ function this.GetOneKeyUpHeroList() -- 限制数量 local upList = {} for k, v in ipairs(tempHeros) do - if #heros < rulesNum then - table.insert(heros, v) - upList[v.dynamicId] = 1 + if not upList[v.heroConfig.Id] then + if #heros < rulesNum then + table.insert(heros, v) + upList[v.heroConfig.Id] = 1 + end end end -- 所有英雄,按战力补位 @@ -87,7 +89,7 @@ function this.GetOneKeyUpHeroList() end end) for k, v in ipairs(allHeros) do - if not upList[v.dynamicId] then + if not upList[v.heroConfig.Id] then if #heros < 6 then table.insert(heros, v) end