From 8d2d0f0b222536772490ff91814c883925c3aaf5 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 12 Apr 2021 20:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhis=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=AE=97=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/getSeqGen.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parts/player/getSeqGen.lua b/parts/player/getSeqGen.lua index 79f6b75a..7d5df9e3 100644 --- a/parts/player/getSeqGen.lua +++ b/parts/player/getSeqGen.lua @@ -20,6 +20,7 @@ local seqGens={ end, his4=function(P,seq0) local len=#seq0 + local his={0,0,0,0} while true do while #P.nextQueue<6 do for n=1,4 do @@ -27,8 +28,8 @@ local seqGens={ repeat i=seq0[P:RND(len)] j=j+1 - until i~=seq0[1]and i~=seq0[2]and i~=seq0[3]and i~=seq0[4]or j==4 - seq0[n]=i + until i~=his[1]and i~=his[2]and i~=his[3]and i~=his[4]or j==4 + his[n]=i P:getNext(i) end end