From f624ba05077458b476f76cb8d666029a2fb56807 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 18 四月 2019 14:37:00 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/WorldMap/LocalMapFindPath.cs | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/System/WorldMap/LocalMapFindPath.cs b/System/WorldMap/LocalMapFindPath.cs
index c92b425..d338ae2 100644
--- a/System/WorldMap/LocalMapFindPath.cs
+++ b/System/WorldMap/LocalMapFindPath.cs
@@ -404,9 +404,19 @@
private void FoucsEventPoint(int _eventPoint)
{
+ var config = MapEventPointConfig.Get(_eventPoint);
+ if (config != null)
+ {
+ var npcConfig = NPCConfig.Get(config.NPCID);
+ if (npcConfig.NPCType == 0)
+ {
+ m_EventPointInstroduce.gameObject.SetActive(false);
+ return;
+ }
+ }
+
if (model.selectedMapEventPoint != -1)
{
- var config = MapEventPointConfig.Get(_eventPoint);
var monsterRefreshConfig = MonsterRefreshPointConfig.Get(config.NPCID);
var position = new Vector3(monsterRefreshConfig.Position.x * 0.5f, 0, monsterRefreshConfig.Position.y * 0.5f);
--
Gitblit v1.8.0