| Fight/Actor/HeroBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | 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; }