3011 【BUG】【1.6】跨服pk,被机器人打死人物没有倒地表现
| | |
| | | if (target.ServerInstID == PlayerDatas.Instance.PlayerId && target.ActorInfo.RealHp == 0)
|
| | | {
|
| | | GA_PVPClientPlayer.Result(false);
|
| | | var _hero = target as GA_Hero;
|
| | | if (_hero != null)
|
| | | {
|
| | | _hero.Die();
|
| | | if (_hero.State == E_ActorState.AutoRun)
|
| | | {
|
| | | _hero.StopPathFind();
|
| | | }
|
| | | _hero.StopRush();
|
| | | _hero.Behaviour.StopHandupAI(true);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | { |
| | | #if UNITY_EDITOR |
| | | Debug.Log(winOrLose ? "============ 赢了" : "============ 输了"); |
| | | RuntimeLogUtility.TEST_CLIENT_PVP_AI = false; |
| | | #endif |
| | | |
| | | if (OnPVPResult != null) |
| | |
| | | |
| | | private void UpdateAI() |
| | | { |
| | | #if UNITY_EDITOR |
| | | if (!RuntimeLogUtility.TEST_CLIENT_PVP_AI) |
| | | { |
| | | return; |
| | | } |
| | | #endif |
| | | |
| | | if (dungeonModel.dungeonFightStage != DungeonFightStage.Normal |
| | | || !doAILogic) |
| | | { |