失败方没扣卡问题修复
This commit is contained in:
parent
e5b89d4e37
commit
84d43ec1b2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user