少年修仙传客户端代码仓库
client_Hale
2019-01-28 3f5b9a7537dfa546029ce3da2fce3ca4f7635d86
2958 【1.5.200】选中跨服boss、采集跨服宝箱时退出跨服,自动战斗异常
1个文件已修改
4 ■■■■ 已修改文件
Fight/Actor/HeroBehaviour.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Actor/HeroBehaviour.cs
@@ -463,7 +463,7 @@
            Vector3 _dir;
            float _radius = 0.5f;
            GActorFight _fight = m_Hero.LockTarget as GActorFight;
            if (m_Hero.LockTarget != null && _fight.CanAtked())
            if (_fight != null && _fight.CanAtked())
            {
                GActorNpcFight _npcFight = m_Hero.LockTarget as GActorNpcFight;
                if (_npcFight != null)
@@ -477,7 +477,7 @@
            else if (m_Hero.SelectTarget != null)
            {
                GActorNpcFight _npcFight = m_Hero.SelectTarget as GActorNpcFight;
                if (_npcFight != null)
                if (_npcFight != null && _fight.CanAtked())
                {
                    _radius = _npcFight.NpcConfig.ModelRadius;
                }