| | |
| | | import GameWorld
|
| | | import PetControl
|
| | | import SkillShell
|
| | | import GameObj
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | 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)
|
| | |
|
| | |
| | | AttackCommon.OnPlayerHitPlayer(curPlayer, curTagPlayer, tick)
|
| | |
|
| | | #宠物死亡
|
| | | if curTagPet.GetHP() <= 0:
|
| | | if GameObj.GetHP(curTagPet) <= 0:
|
| | | curTagPetNPCControl = NPCCommon.NPCControl(curTagPet)
|
| | | curTagPetNPCControl.SetKilled()
|
| | |
|