From 5f15c8549e7249db309448442ecc54d9029d1e68 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Mon, 11 Oct 2021 11:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90ID1010432=E3=80=91=20=E3=80=90?= =?UTF-8?q?=E5=9B=9B=E7=81=B5=E8=AF=95=E7=82=BC=E3=80=91=E7=BC=96=E9=98=9F?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=9A=84=E7=A5=9E=E5=B0=86=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E4=B8=8E=E5=BF=83=E9=AD=94=E8=AF=95=E7=82=BC?= =?UTF-8?q?=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Formation/View/FourElementFormation.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Formation/View/FourElementFormation.lua b/Assets/ManagedResources/~Lua/Modules/Formation/View/FourElementFormation.lua index 6f1fe653a3..09ef4dda01 100644 --- a/Assets/ManagedResources/~Lua/Modules/Formation/View/FourElementFormation.lua +++ b/Assets/ManagedResources/~Lua/Modules/Formation/View/FourElementFormation.lua @@ -77,10 +77,10 @@ function this.SortHeroDatas(data) end table.sort(data,function(a,b) if a.fourElementSortId == b.fourElementSortId then - if a.warPower == b.warPower then - return a.star > b.star - else + if a.star == b.star then return a.warPower > b.warPower + else + return a.star > b.star end else return a.fourElementSortId > b.fourElementSortId