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/NPCAI/AICommon.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py
index eaa23fa..d05a84c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AICommon.py
@@ -176,7 +176,7 @@
         # SetIsNeedProcess(False) 应该及时清理仇恨,回血可以不用即时
         curNPC.GetNPCAngry().Clear()
         
-#    if curNPC.GetHP() != curNPC.GetMaxHP():
+#    if GameObj.GetHP(curNPC) != GameObj.GetMaxHP(curNPC):
 #        if curNPC.GetIsBoss() != ChConfig.Def_NPCType_Ogre_Normal:
 #            return
 #        
@@ -232,7 +232,7 @@
         curPlayer = GameWorld.GetObj(hurtObjID, IPY_GameWorld.gotPlayer)
         
         #无法查找玩家,或者已经死亡
-        if curPlayer == None or curPlayer.GetHP() <= 0:
+        if curPlayer == None or GameObj.GetHP(curPlayer) <= 0:
             continue
         
         if srcPlayer and curPlayer.GetID() == srcPlayer.GetID():
@@ -415,7 +415,7 @@
             continue
         
         #仇恨值
-        curAngryValue = curAngry.GetAngryValue()
+        curAngryValue = GameObj.GetAngryValue(curAngry)
         if curAngryValue == 0:
             continue
         

--
Gitblit v1.8.0