少年修仙传客户端代码仓库
client_Hale
2019-04-16 ac8a40ad2d24e7700fa5667d732cd9f2ab83e6ef
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)
                    {