From 83d7d2937b9c397e340cb4a461a3632b67612619 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 21 Jan 2024 23:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E7=8E=87=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E9=80=89=E5=B0=86=E9=87=8D=E5=A4=8D=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/game/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noname/game/index.js b/noname/game/index.js index 77b4bcdbc..761ab1aaa 100644 --- a/noname/game/index.js +++ b/noname/game/index.js @@ -7159,9 +7159,9 @@ export class Game extends Uninstantable { } for (let i = 0; i < event.config.num; i++) { let rand2 = rand.randomGet(); - for (let j = 0; j < rand2.length; j++) { - if (rand2[j] == rand2) { - rand2.splice(j--, 1); + for (let j = 0; j < rand.length; j++) { + if (rand[j] == rand2) { + rand.splice(j--, 1); } } event.enemylist.push(event.enemy[rand2]);