From 4ad6cadee50d0267dec17876e4b8bce9bebe0bb6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 28 四月 2021 18:48:24 +0800
Subject: [PATCH] 8912 【主干】【BT2】【后端】跨服PVP逻辑优化(1.X局内无法再次匹配同一玩家 2.优化超时匹配逻辑 3.优化匹配段位差 4.增加连输X局必连续匹配Y局机器人);

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_PriWood.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_PriWood.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_PriWood.py
index 62be145..d891106 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_PriWood.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_PriWood.py
@@ -19,6 +19,7 @@
 import NPCCommon
 import GameWorld
 import GameMap
+import ChConfig
 
 
 ##AI逻辑处理
@@ -36,7 +37,10 @@
     #刷新自己的Buff
     npcControl.RefreshBuffState(tick)
     
-    owner = NPCCommon.GetNpcObjOwnerDetail(curNPC)
+    summonPlayerID = curNPC.GetDictByKey(ChConfig.Def_NPC_Dict_PriWoodPilePlayerID)
+    if not summonPlayerID:
+        return
+    owner = GameWorld.GetObj(summonPlayerID, IPY_GameWorld.gotPlayer)
     if not owner:
         return
     

--
Gitblit v1.8.0