From e74178266e50d14b11ba40ad6d9c25bb3ae02173 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 16 四月 2019 21:16:56 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Fight/GameActor/GA_NpcClientCollect.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Fight/GameActor/GA_NpcClientCollect.cs b/Fight/GameActor/GA_NpcClientCollect.cs
index a3504a2..a13c989 100644
--- a/Fight/GameActor/GA_NpcClientCollect.cs
+++ b/Fight/GameActor/GA_NpcClientCollect.cs
@@ -108,7 +108,15 @@
 
         if (_chkDistSqrt < 4)
         {
-            StartCollect();
+            var _model = ModelCenter.Instance.GetModel<HazyGrassModel>();
+            if (_model.CanCollectClientNpc(NpcConfig.NPCID))
+            {
+                StartCollect();
+            }
+            else
+            {
+                _model.DisplayCollectErrorTip();
+            }
         }
     }
 

--
Gitblit v1.8.0