Эх сурвалжийг харах

自动战斗第一次使用天工技能为0分

zhaoyang 3 жил өмнө
parent
commit
7d784c052e

+ 2 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -207,7 +207,6 @@ namespace GFGGame
             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(_levelCfg.fightID);
             SceneController.UpdateFightTarget(fightCfg.targetRes, _sceneObject);
 
-            UpdateNormal();
             // _ui.m_selfName.m_txtName.text = RoleDataManager.roleName;
             // _ui.m_targetName.m_txtName.text = fightCfg.targetName;
             _ui.m_proScore.m_txtNpcScore.text = fightCfg.targetName + "0";
@@ -232,6 +231,7 @@ namespace GFGGame
             _mainScore = ScoreSystemData.Instance.GetMainScore();
             _targetMainScore = fightCfg.targetMainScore;
 
+            UpdateNormal();
             if (_index == 0 && GuideDataManager.IsGuideFinish(ConstGuideId.TARGET_FIGHT) <= 0)
             {
                 _ui.m_btnSkill0.target.touchable = false;
@@ -252,7 +252,6 @@ namespace GFGGame
             if (_levelCfg.type == ConstInstanceZonesType.Field || EquipDataCache.cacher.autoPlay)
             {
                 _isAutoPlay = true;
-                // _speed = EquipDataCache.cacher.fieldFightSpeed;
             }
 
             RoleSkillCfg[] roleSkillCfgs = RoleSkillCfgArray.Instance.dataArray;
@@ -265,7 +264,7 @@ namespace GFGGame
                 if (_isAutoPlay)
                 {
 
-                    btnSkill.touchable = !EquipDataCache.cacher.autoPlay;
+                    btnSkill.touchable = !_isAutoPlay;
                     OnBtnSkillClick(btnSkill);
                 }
             }