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

---
 Fight/Actor/Skill/AttackHandler.cs |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/Fight/Actor/Skill/AttackHandler.cs b/Fight/Actor/Skill/AttackHandler.cs
index 826f7a1..92219af 100644
--- a/Fight/Actor/Skill/AttackHandler.cs
+++ b/Fight/Actor/Skill/AttackHandler.cs
@@ -195,6 +195,8 @@
                 }
                 else
                 {
+                    bool _doReduceHp = true;
+
                     if (attacker is GA_NpcClientFightNorm)
                     {
                         if (target.ActorInfo.RealHp <= (target.ActorInfo.RealMaxHp * .5f))
@@ -202,8 +204,18 @@
                             hurtValue = 0;
                         }
                     }
+                    else if (target is GA_NpcClientFightNorm)
+                    {
+                        if ((target as GA_NpcClientFightNorm).NpcConfig.AIType == 198)
+                        {
+                            _doReduceHp = false;
+                        }
+                    }
 
-                    target.ActorInfo.ReduceHp((uint)hurtValue);
+                    if (_doReduceHp)
+                    {
+                        target.ActorInfo.ReduceHp((uint)hurtValue);
+                    }
 
                     if (target.ServerInstID == PlayerDatas.Instance.baseData.PlayerID)
                     {

--
Gitblit v1.8.0