fix(pet): 修复空变更导致的潜在逻辑问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user