瀏覽代碼

雅集祈福提示消耗不足

zhaoyang 2 年之前
父節點
當前提交
c5b01a95d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Views/League/LeaguePrayView.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeaguePrayView.cs

@@ -99,7 +99,7 @@ namespace GFGGame
             int curTimes = LeagueDataManager.Instance.GetPrayTimesByType(type);
             long hasCount = ItemDataManager.GetItemNum(prayCfg.consumeArr[0][0]);
             long needCount = prayCfg.consumeArr[0][1];
-            if (type != LeaguePrayType.First && curTimes != 0 && hasCount < needCount)
+            if (type == LeaguePrayType.First && curTimes != 0 && hasCount < needCount || type != LeaguePrayType.First && hasCount < needCount)
             {
                 PromptController.Instance.ShowFloatTextPrompt("消耗不足");
                 return;