| | |
| | |
|
| | | if (CheckPull(attacker, target, soConfig.bodyControlId))
|
| | | {
|
| | | target.StartBeatBack(attacker.ServerInstID, soConfig.bodyControlId, MathUtility.ForwardXZ(target.Pos, attacker.Pos));
|
| | | target.StartBeatBack(attacker.ServerInstID, soConfig.bodyControlId, MathUtility.ForwardXZ(target.Pos, attacker.Pos), (HurtAttackType)attackType);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (canDie && target.ActorInfo.RealHp == 0)
|
| | | {
|
| | | target.Die(attacker.ServerInstID, soConfig.deadFlyId);
|
| | | target.Die(attacker.ServerInstID, soConfig.deadFlyId, (byte)attackType);
|
| | | }
|
| | |
|
| | | if (target.ActorInfo.serverDie
|
| | |
| | | {
|
| | | attackType = (byte)HurtAttackType.ZhuXianAtk;
|
| | | }
|
| | | else if (_isLucky)
|
| | | else if (_isLucky
|
| | | #if UNITY_EDITOR
|
| | | || RuntimeLogUtility.s_ForceLuckHit
|
| | | #endif
|
| | | )
|
| | | {
|
| | | attackType = (byte)HurtAttackType.LuckyHit;
|
| | | }
|
| | | else if (_isCrit)
|
| | | else if (_isCrit
|
| | | #if UNITY_EDITOR
|
| | | || RuntimeLogUtility.s_ForceSupperHit
|
| | | #endif
|
| | | )
|
| | | {
|
| | | attackType = (byte)HurtAttackType.SuperHit;
|
| | | }
|