From 7a804a8a761d282e9aa629dbcbe62d0316ae4220 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 09 二月 2023 18:40:34 +0800
Subject: [PATCH] 9765 【BT8】【后端】神通(切换技能时所有出战神通技能重新进入CD)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Pet.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Pet.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Pet.py
index c1e76de..e52fc10 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Pet.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/NormalNPC_Attack_Pet.py
@@ -108,12 +108,12 @@
def AttackResult(curNormalNPC, curTagPet, skill, tick):
curTagPlayer = PetControl.GetPetOwner(curTagPet) # 宠物主人
- if curTagPlayer != None and curTagPlayer.GetHP() > 0:
+ if curTagPlayer != None and GameObj.GetHP(curTagPlayer) > 0:
#进入战斗状态
AttackCommon.SetPlayerBattleState(curTagPlayer, tick)
#宠物死亡
- if curTagPet.GetHP() <= 0:
+ if GameObj.GetHP(curTagPet) <= 0:
curTagPetNPCControl = NPCCommon.NPCControl(curTagPet)
curTagPetNPCControl.SetKilled()
--
Gitblit v1.8.0