fix(pet): 修复空变更导致的潜在逻辑问题

This commit is contained in:
1
2025-12-04 03:55:38 +00:00
parent 166fbad07f
commit b1748d1428

View File

@@ -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