From 84d43ec1b24c2d957be1c1515ff2fe007b9d9a85 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 20 Nov 2023 14:52:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=96=B9=E6=B2=A1=E6=89=A3?= =?UTF-8?q?=E5=8D=A1=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/room.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/entertainment/room.go b/modules/entertainment/room.go index 3dc8522ba..f21107215 100644 --- a/modules/entertainment/room.go +++ b/modules/entertainment/room.go @@ -529,7 +529,7 @@ func (this *Room) GameOver() (errdata *pb.ErrorData) { if conf, err := this.module.configure.GetGameConsumeHero(lostPlayer.Cardid); err == nil && lostPlayer.Userinfo.Uid != "999" { if conf.Type != 1 { //卡片类型不为1 if list, err := this.module.model.getEntertainmList(lostPlayer.Userinfo.Uid); err == nil { - if list.Card[lostPlayer.Cardid] > 1 { + if list.Card[lostPlayer.Cardid] >= 1 { list.Card[lostPlayer.Cardid] -= 1 this.module.model.modifyEntertainmList(lostPlayer.Userinfo.Uid, map[string]interface{}{ "card": list.Card,