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() + } } }