少年修仙传客户端代码仓库
client_linchunjie
2019-04-25 e1dcfa049cd7f676fb56c91bee6737dce0aed7e4
Fight/Actor/Skill/AttackHandler.cs
@@ -206,10 +206,24 @@
                    }
                    else if (target is GA_NpcClientFightNorm)
                    {
                        if ((target as GA_NpcClientFightNorm).NpcConfig.AIType == 198)
                        var _cnpc = target as GA_NpcClientFightNorm;
                        if (_cnpc.NpcConfig.AIType == 198)
                        {
                            _doReduceHp = false;
                        }
                        else if (_cnpc.lockHp > 0)
                        {
                            var _lockHp = (ulong)(target.ActorInfo.RealMaxHp * _cnpc.lockHp);
                            if ((ulong)hurtValue >= target.ActorInfo.Hp)
                            {
                                target.ActorInfo.ResetHp((int)_lockHp);
                                _doReduceHp = false;
                            }
                            else if (target.ActorInfo.Hp - (ulong)hurtValue < _lockHp)
                            {
                                hurtValue = (int)(target.ActorInfo.Hp - _lockHp);
                            }
                        }
                    }
                    if (_doReduceHp)