This commit is contained in:
@@ -187,7 +187,7 @@ func (our *Input) InitAttackValue() {
|
||||
}
|
||||
func (our *Input) GetPet(id uint32) (ii *info.BattlePetEntity, Reason info.ChangePetInfo) {
|
||||
for _, v := range our.AllPet {
|
||||
if v.Info.CatchTime == uint32(id) {
|
||||
if v.Info.CatchTime == uint32(id) && v.Info.Hp > 0 {
|
||||
copier.Copy(&Reason, &v.Info)
|
||||
Reason.UserId = our.Player.GetInfo().UserID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user