```feat(fight): 新增战斗效果60/699/700并优化宠物物品使用逻辑
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user