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