ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/Pet_Attack_Pet.py
@@ -25,6 +25,7 @@
import GameWorld
import PetControl
import SkillShell
import GameObj
#---------------------------------------------------------------------
#---------------------------------------------------------------------
@@ -115,7 +116,7 @@
    curTagPlayer = PetControl.GetPetOwner(curTagPet)  # 宠物主人
    curPlayer = PetControl.GetPetOwner(curPet)  # 宠物主人
    
    if curTagPlayer != None and curTagPlayer.GetHP() > 0:
    if curTagPlayer != None and GameObj.GetHP(curTagPlayer) > 0:
        #进入战斗状态
        AttackCommon.SetPlayerBattleState(curTagPlayer, tick)
        
@@ -124,7 +125,7 @@
            AttackCommon.OnPlayerHitPlayer(curPlayer, curTagPlayer, tick)
    
    #宠物死亡
    if curTagPet.GetHP() <= 0:
    if GameObj.GetHP(curTagPet) <= 0:
        curTagPetNPCControl = NPCCommon.NPCControl(curTagPet)
        curTagPetNPCControl.SetKilled()