ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCAI/AIType_20.py
@@ -73,11 +73,11 @@ # 没有攻击目标则跟随玩家 if not curTag: GameWorld.DebugLog("没有攻击目标,跟随玩家!objID=%s" % curNPC.GetID()) #GameWorld.DebugLog("没有攻击目标,跟随玩家!objID=%s" % curNPC.GetID()) dist = GameWorld.GetDist(fbPlayer.GetPosX(), fbPlayer.GetPosY(), curNPC.GetPosX(), curNPC.GetPosY()) if dist > 12: posX, posY = npcControl.GetMoveNearPos(fbPlayer.GetPosX(), fbPlayer.GetPosY(), 3) curHP.ResetPos(posX, posY) curNPC.ResetPos(posX, posY) elif dist > 5: npcControl.MoveToObj_Detel(fbPlayer, 5) return