1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-02-05 23:44:07 +08:00
parent 30c89dcd2a
commit a0d4567d3f
10 changed files with 110 additions and 47 deletions

View File

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