From bcdcddadca0668dbec6a988b9f8044dcdd3a4adf Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 23 五月 2019 17:56:08 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 Fight/Actor/Skill/AttackHandler.cs |   16 ++++++++--------
 Fight/Actor/HeroBehaviour.cs       |    5 +++++
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/Fight/Actor/HeroBehaviour.cs b/Fight/Actor/HeroBehaviour.cs
index a5e8f0a..cbb6967 100644
--- a/Fight/Actor/HeroBehaviour.cs
+++ b/Fight/Actor/HeroBehaviour.cs
@@ -898,6 +898,11 @@
             {
                 _target = GAMgr.Instance.GetByCID(skill.hitClientBattleTargetList[i]) as GActorFight;
 
+                if (PersonalEnemy.m_CBinSdDict.ContainsKey(_target.ServerInstID))
+                {
+                    continue;
+                }
+
                 AttackHandler.HurtObjs _hurtObject = new AttackHandler.HurtObjs
                 {
                     ObjID = (uint)_target.ServerInstID,
diff --git a/Fight/Actor/Skill/AttackHandler.cs b/Fight/Actor/Skill/AttackHandler.cs
index 082d15c..1793e9c 100644
--- a/Fight/Actor/Skill/AttackHandler.cs
+++ b/Fight/Actor/Skill/AttackHandler.cs
@@ -237,14 +237,14 @@
 
                     if (_doReduceHp)
                     {
-                        if (attacker is GA_NpcClientFightNorm || target is GA_NpcClientFightNorm)
-                        {
-                            target.ActorInfo.ReduceHp((uint)hurtValue);
-                        }
-                        else
-                        {
-                            target.ActorInfo.ReduceHp((uint)realHurtValue);
-                        }
+                        // if (attacker is GA_NpcClientFightNorm || target is GA_NpcClientFightNorm)
+                        // {
+                        //     target.ActorInfo.ReduceHp((uint)hurtValue);
+                        // }
+                        // else
+                        // {
+                        target.ActorInfo.ReduceHp((uint)realHurtValue);
+                        // }
                     }
 
                     if (target.ServerInstID == PlayerDatas.Instance.baseData.PlayerID)

--
Gitblit v1.8.0