From 4ec2ce61ae3130da5b952c1be8be314390c3fadf Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 29 Jan 2024 11:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8E=A0=E5=A4=BA=E3=80=91pvp?= =?UTF-8?q?=E5=B8=83=E9=98=B5=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/plunder/api_pvpchallenge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plunder/api_pvpchallenge.go b/modules/plunder/api_pvpchallenge.go index 263517964..a55183de8 100644 --- a/modules/plunder/api_pvpchallenge.go +++ b/modules/plunder/api_pvpchallenge.go @@ -155,7 +155,7 @@ func (this *apiComp) PvpChallenge(session comm.IUserSession, req *pb.PlunderPvpC } if errdata, record = this.module.battle.CreatePvpBattle(session, &pb.BattlePVPReq{ - Rulesid: 105, + Rulesid: this.module.ModuleTools.GetGlobalConf().PlunderPvpBattlereadyid, Ptype: pb.PlayType_arena, Redformat: &pb.PVPFormation{Uid: session.GetUserId(), Leadpos: req.Battle.Leadpos, Format: heros}, Buleformat: &pb.PVPFormation{Uid: land.Ship[req.Oid].Uid, Leadpos: land.Ship[req.Oid].Defend.Leadpos, Format: land.Ship[req.Oid].Defend.Formt}, @@ -172,7 +172,7 @@ func (this *apiComp) PvpChallenge(session comm.IUserSession, req *pb.PlunderPvpC Info: &pb.BattleInfo{ Id: record.Id, Title: record.Title, - Rulesid: 105, + Rulesid: this.module.ModuleTools.GetGlobalConf().PlunderPvpBattlereadyid, Btype: record.Btype, Ptype: record.Ptype, RedCompId: record.RedCompId,