diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 087346977..9fed98888 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -464,7 +464,7 @@ func (this *MapData) Check3X() (bEliminate bool, xiaochu []int) { // 校验地图可消除的 判断各组上面2个和右边两个是否三个相等 // xc 判断用来是否加体力 -func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, xc bool) { +func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, bAddPs bool) { var ( tXiaochu map[int]struct{} curScore int32 @@ -487,6 +487,9 @@ func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, xc new[k] = v } for _, v := range xc { + if len(v) >= 4 { + bAddPs = true + } for _, v1 := range v { tXiaochu[v1] = struct{}{} } diff --git a/modules/plunder/api_refresh.go b/modules/plunder/api_refresh.go index 3f449c1d3..5fd64d27c 100644 --- a/modules/plunder/api_refresh.go +++ b/modules/plunder/api_refresh.go @@ -38,7 +38,7 @@ func (this *apiComp) Refresh(session comm.IUserSession, req *pb.PlunderRefreshRe } } } - if list.Freecount > freeCount { + if list.Freecount >= freeCount { if errdata = this.module.ConsumeRes(session, []*cfg.Gameatn{this.module.ModuleTools.GetGlobalConf().PlunderPvpRemake}, true); errdata != nil { return }