From 0b52fea0c2dec053c44678d94bd66c10db1b0b91 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 06 四月 2021 17:27:57 +0800
Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(超21亿)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
index 38c2670..6147fab 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCHurtManager.py
@@ -32,6 +32,7 @@
 import NPCCommon
 import FBCommon
 import ChConfig
+import GameObj
 
 import time
 
@@ -530,7 +531,7 @@
                 GameWorld.DebugLog("伤血玩家不可见,不计!playerID=%s" % playerID, self.npcID, self.lineID)
                 return False
             
-            if player.GetHP() <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
+            if GameObj.GetHP(player) <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
                 deadTime = player.NomalDictGetProperty(ChConfig.Def_Player_Dict_DeadTime)
                 if time.time() - deadTime >= IpyGameDataPY.GetFuncCfg("BossHurtValue", 1):
                     GameWorld.DebugLog("伤血玩家死亡超过伤血保护时长,不计!playerID=%s" % playerID, self.npcID, self.lineID)
@@ -650,7 +651,7 @@
                 if player == None:
                     continue
                 
-                if player.GetHP() <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
+                if GameObj.GetHP(player) <= 0 or player.GetPlayerAction() == IPY_GameWorld.paDie:
                     playerDisableReason[playerID] = "dead"
                     continue
                 

--
Gitblit v1.8.0