zhaoyang 3 жил өмнө
parent
commit
74b598f52e

+ 12 - 8
GameClient/Assets/Game/HotUpdate/Data/InstanceZonesDataManager.cs

@@ -233,11 +233,7 @@ namespace GFGGame
                 return false;//没穿必需品
             }
 
-            int starCount = GetResultStarCount(score);
-            if (starCount <= 0)
-            {
-                return false;//低于一星
-            }
+
 
             StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(currentLevelCfgId);
             StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
@@ -245,13 +241,21 @@ namespace GFGGame
             if (hasFightTarget)
             {
                 npcScore = EquipDataCache.cacher.npcTotalScore;
-                if (score < npcScore)
+                if (score > npcScore)
+                {
+                    return true;//分数低于对战对象
+                }
+            }
+            else
+            {
+                int starCount = GetResultStarCount(score);
+                if (starCount > 0)
                 {
-                    return false;//分数低于对战对象
+                    return true;//低于一星
                 }
             }
 
-            return true;
+            return false;
         }
 
         public static int GetCanFightTime(int levelCfgId)