From 7bfc75a3e1fe3c5282bb9d19da73abb4d5d27d02 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 23 五月 2019 17:25:20 +0800
Subject: [PATCH] 382 修正错误的添加了木桩的客户端目标至伤害列表中; 客户端目标伤血根据实际伤害值而非下发伤害值
---
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