少年修仙传客户端代码仓库
client_Hale
2019-02-21 57c8fa7d54c72821a1e29aaf2a1d95d7a5019297
3011 【BUG】【1.6】跨服pk,被机器人打死人物没有倒地表现
2个文件已修改
19 ■■■■■ 已修改文件
Fight/Actor/Skill/AttackHandler.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_PVPClientPlayer.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/Skill/AttackHandler.cs
@@ -206,6 +206,17 @@
                        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);
                            }
                        }
                    }
                }
Fight/GameActor/GA_PVPClientPlayer.cs
@@ -26,7 +26,6 @@
    {
#if UNITY_EDITOR
        Debug.Log(winOrLose ? "============ 赢了" : "============ 输了");
        RuntimeLogUtility.TEST_CLIENT_PVP_AI = false;
#endif
        if (OnPVPResult != null)
@@ -301,6 +300,13 @@
    private void UpdateAI()
    {
#if UNITY_EDITOR
        if (!RuntimeLogUtility.TEST_CLIENT_PVP_AI)
        {
            return;
        }
#endif
        if (dungeonModel.dungeonFightStage != DungeonFightStage.Normal
        || !doAILogic)
        {