From 5718f4abbbdda1752664089e119fc8ead03f3d58 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 27 十一月 2018 16:36:14 +0800
Subject: [PATCH] 4762 【后端】修复机器人被眩晕后一直站着不动bug;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py       |    6 ------
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py |    5 +++--
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py
index ba01927..1541e78 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py
@@ -62,6 +62,7 @@
         curTag = GameWorld.FindNPCByID(playerAtkObjID)
         
     npcControl = NPCCommon.NPCControl(curNPC)
+    npcControl.RefreshBuffState(tick)
     # 没有玩家正在攻击的目标则取自身的仇恨列表
     if not curTag:
         #GameWorld.DebugLog("没有玩家正在攻击的目标,刷新自身仇恨目标!objID=%s,maxHP=%s" % (curNPC.GetID(), GameObj.GetMaxHP(curNPC)))
@@ -79,8 +80,8 @@
         if dist > 12:
             resultPos = GameMap.GetEmptyPlaceInArea(fbPlayer.GetPosX(), fbPlayer.GetPosY(), 3)
             curNPC.ResetPos(resultPos.GetPosX(), resultPos.GetPosY())
-        elif dist > 5:
-            npcControl.MoveToObj_Detel(fbPlayer, 5)
+        elif dist > 3:
+            npcControl.MoveToObj_Detel(fbPlayer, 3)
         return
     __NPCFight(npcControl, curNPC, curTag, tick)
     return
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 6848915..0edc709 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -3653,9 +3653,6 @@
     #  @remarks 刷新NPC属性
     def RefreshNPCAttrState(self, canSyncClient=True, isReborn=False):
         curNPC = self.__Instance
-        if curNPC.GetType() == ChConfig.ntHelpBattleRobot:
-            # 助战机器人不处理
-            return
         #curNPCMaxHP_Before = GameObj.GetMaxHP(curNPC)
         #清空NPC战斗属性
         curNPC.ClearBattleEffect()
@@ -3739,9 +3736,6 @@
     #  @remarks 刷新NPC行为属性
     def RefreshNPCActionState(self):
         curNPC = self.__Instance
-        if curNPC.GetType() == ChConfig.ntHelpBattleRobot:
-            # 助战机器人不处理
-            return
         OperControlManager.ClearObjActionState(curNPC)
         
         #根据BUFF 加上状态

--
Gitblit v1.8.0