From 232dc9d0518eee776b053123ee6e3b6b16baf8bb Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Mon, 13 Nov 2023 14:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/catchbugs/room.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/catchbugs/room.go b/modules/catchbugs/room.go index b025a8120..fdc55a95b 100644 --- a/modules/catchbugs/room.go +++ b/modules/catchbugs/room.go @@ -294,8 +294,10 @@ func (this *Room) AiHanle(stype string) { this.AiHandleByOpenCard() break case "opencard": - time.Sleep(time.Second) - this.AiHandleByOpenCard() + if this.aihandlenumber < int32(len(this.aihandlecards)) { + time.Sleep(time.Second) + this.AiHandleByOpenCard() + } } }