From b1748d14289931fa701eb0e94544744a1b3ce833 Mon Sep 17 00:00:00 2001 From: 1 <1@72wo.cn> Date: Thu, 4 Dec 2025 03:55:38 +0000 Subject: [PATCH] =?UTF-8?q?fix(pet):=20=E4=BF=AE=E5=A4=8D=E7=A9=BA?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E5=AF=BC=E8=87=B4=E7=9A=84=E6=BD=9C=E5=9C=A8?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/service/fight/loop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logic/service/fight/loop.go b/logic/service/fight/loop.go index 8d9245b8..401909a9 100644 --- a/logic/service/fight/loop.go +++ b/logic/service/fight/loop.go @@ -72,13 +72,14 @@ func (f *FightC) battleLoop() { }) if f.Reason == info.BattleOverReason.Cacthok { + f.WinnerId=f.ownerID f.Our.Player.(*player.Player).Service.Pet.PetAdd(&f.Opp.Player.GetInfo().PetList[0]) f.Our.Player.SendPackCmd(2409, &info.CatchMonsterOutboundInfo{ CatchTime: uint32(f.Opp.CurrentPet.Info.CatchTime), PetId: uint32(f.Opp.CurrentPet.ID), }) - f.Reason = 0 //清空 + //f.Reason = 0 //清空 } //f.Reason = info.BattleOverReason.PlayerCaptureSuccess