| | |
| | |
|
| | | if (attacker is GA_NpcClientFightNorm)
|
| | | {
|
| | | if ((target.ActorInfo.RealHp - (ulong)hurtValue) <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | if ((target.ActorInfo.RealHp - (ulong)realHurtValue) <= (target.ActorInfo.RealMaxHp * .5f))
|
| | | {
|
| | | hurtValue = 0;
|
| | | realHurtValue = 0;
|
| | |
| | |
|
| | | if (_doReduceHp)
|
| | | {
|
| | | 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)
|