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/Player/PlayerCrossRealmPK.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
index 36e621f..61cd3aa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py
@@ -31,6 +31,7 @@
 import ItemCommon
 import GameWorld
 import ChConfig
+import GameObj
 
 ## 是否匹配中
 def SetIsCrossPKMatching(curPlayer, isMatching):
@@ -221,7 +222,7 @@
         GameWorld.DebugLog("副本中,无法进行跨服匹配!", playerID)
         return
     
-    if curPlayer.GetPlayerAction() == IPY_GameWorld.paDie or curPlayer.GetHP() == 0:
+    if curPlayer.GetPlayerAction() == IPY_GameWorld.paDie or GameObj.GetHP(curPlayer) == 0:
         #GameWorld.DebugLog("已死亡,无法进行跨服匹配!", playerID)
         return
     
@@ -250,9 +251,9 @@
                    "playerName":CrossRealmPlayer.GetCrossPlayerName(curPlayer),
                    "playerJob":curPlayer.GetJob(),
                    "playerLV":curPlayer.GetLV(),
-                   "maxHP":curPlayer.GetMaxHP(),
+                   "maxHP":GameObj.GetMaxHP(curPlayer),
                    "maxProDef":PlayerControl.GetMaxProDef(curPlayer),
-                   "fightPower":curPlayer.GetFightPower(),
+                   "fightPower":PlayerControl.GetFightPower(curPlayer),
                    "realmLV":curPlayer.GetOfficialRank(),
                    "pkScore":curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_TotalScore), # 当前积分
                    "danLV":curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_DanLV), # 当前段位

--
Gitblit v1.8.0