```feat(fight): 新增战斗效果60/699/700并优化宠物物品使用逻辑

This commit is contained in:
1
2025-12-30 15:04:21 +00:00
parent f91b88e90f
commit f770ccc06f
5 changed files with 96 additions and 10 deletions

View File

@@ -52,12 +52,8 @@ func (h Controller) UsePetItemOutOfFight(data *item.C2S_USE_PET_ITEM_OUT_OF_FIGH
}
oldPetCatchTime := currentPet.CatchTime
oldPet := c.Service.Pet.PetInfo_One_Unscoped(currentPet.OldCatchTime)
copier.CopyWithOption(currentPet, oldPet.Data, copier.Option{DeepCopy: true})
// println("currentPet.CatchTime", currentPet.CatchTime, currentPet.OldCatchTime)
currentPet = &oldPet.Data
currentPet.CatchTime = oldPetCatchTime
currentPet.EffectInfo = oldPet.Data.EffectInfo
} else {
handler := item.PetItemRegistry.GetHandler(data.ItemID)
if handler == nil {