| | |
| | | }
|
| | | 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)
|