From c17a0d54f4a8a7c7a48d64d5228f94e84f781601 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 13 一月 2025 15:53:09 +0800
Subject: [PATCH] 10334 【越南】【英语】【BT】【砍树】境界修改-服务端(杀怪任务击杀副本怪也算)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py |   44 ++++++++++++++++----------------------------
 1 files changed, 16 insertions(+), 28 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
index eee9715..75ac486 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py
@@ -35,7 +35,6 @@
 import IpyGameDataPY
 import PyDataManager
 import CrossRealmMsg
-import CrossRealmPK
 import ShareDefine
 import PyGameData
 import ChPlayer
@@ -94,8 +93,6 @@
                 if billboardObj.FindByID(playerID):
                     return True
                 
-        if CrossRealmPK.IsCrossRealmPKPlayer(playerID, checkPreSeason=True):
-            return True
     else:
         NeedCheckBillBoardType = IpyGameDataPY.GetFuncEvalCfg("PlayerViewCache", 2)
         #校验玩家是否上排行榜
@@ -499,34 +496,25 @@
     return
 
 def Sync_PlayerShortInfo(curPlayer, curCache):
+    if not curCache:
+        PlayerControl.NotifyCode(curPlayer, "ViewPlayer_OffLine")
+        return
     answerPack = ChPyNetSendPack.tagGCAnswerPlayerShortInfo()
     answerPack.Clear()
-    if not curCache:
-        # 实在找不到设置为初始化数据
-        answerPack.PlayerID = curCache.PlayerID
-        answerPack.PlayerName = ""
-        answerPack.Job = 1
-        answerPack.LV = 1
-        answerPack.RealmLV = 1
-        answerPack.OnlineType = ChConfig.Def_Offline
-        answerPack.ServerGroupID = 0
-        answerPack.Face = 0
-        answerPack.FacePic = 0
+    cacheDict = GetCachePropDataDict(curCache)
+    answerPack.PlayerID = curCache.PlayerID
+    answerPack.PlayerName = cacheDict["Name"]
+    answerPack.Job = cacheDict["Job"]
+    answerPack.LV = cacheDict["LV"]
+    answerPack.RealmLV = cacheDict["RealmLV"]
+    answerPack.OnlineType = ChConfig.Def_Offline
+    answerPack.Face = cacheDict.get("Face", 0)
+    answerPack.FacePic = cacheDict.get("FacePic", 0)
+    
+    if GameWorld.IsCrossServer():
+        answerPack.ServerGroupID = cacheDict.get("ServerGroupID", 0)
     else:
-        cacheDict = GetCachePropDataDict(curCache)
-        answerPack.PlayerID = curCache.PlayerID
-        answerPack.PlayerName = cacheDict["Name"]
-        answerPack.Job = cacheDict["Job"]
-        answerPack.LV = cacheDict["LV"]
-        answerPack.RealmLV = cacheDict["RealmLV"]
-        answerPack.OnlineType = ChConfig.Def_Offline
-        answerPack.Face = cacheDict.get("Face", 0)
-        answerPack.FacePic = cacheDict.get("FacePic", 0)
-        
-        if GameWorld.IsCrossServer():
-            answerPack.ServerGroupID = cacheDict.get("ServerGroupID", 0)
-        else:
-            answerPack.ServerGroupID = GameWorld.GetServerGroupID()
+        answerPack.ServerGroupID = GameWorld.GetServerGroupID()
     NetPackCommon.SendFakePack(curPlayer, answerPack)
     return
 

--
Gitblit v1.8.0