hxp
2024-05-11 a6b6d774e4039fe551bfe2fbf82182ca1714479c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_Add_PetHP.py
@@ -21,6 +21,7 @@
import PetControl
import ChConfig
import ItemCommon
import GameObj
#---------------------------------------------------------------------
#全局变量
#---------------------------------------------------------------------
@@ -42,8 +43,8 @@
        PlayerControl.NotifyCode(curPlayer, "Pet_liubo_381601", [useItemID])
        return False
    
    fightPetHP = fightPet.GetHP()
    fightPetMaxHP = fightPet.GetMaxHP()
    fightPetHP = GameObj.GetHP(fightPet)
    fightPetMaxHP = GameObj.GetMaxHP(fightPet)
    
    if fightPetHP == fightPetMaxHP:
        PlayerControl.NotifyCode(curPlayer, "Pet_liubo_493922")