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,