| 
					
				 | 
			
			
				@@ -98,22 +98,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             int type = (int)(context.sender as GObject).data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LeaguePrayCfg prayCfg = LeaguePrayCfgArray.Instance.GetCfg(type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             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 || type != LeaguePrayType.First) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (prayCfg.consumeArr[0][0] == ConstItemID.GOLD) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    ItemUtil.AddGold(null, 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                else if (prayCfg.consumeArr[0][0] == ConstItemID.DIAMOND_RED) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    ItemUtil.AddDiamondRed(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    PromptController.Instance.ShowFloatTextPrompt("消耗不足"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!ItemUtil.CheckItemEnough(prayCfg.consumeArr[0][0], prayCfg.consumeArr[0][1])) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -121,7 +108,6 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     ItemUtil.BuyCurrency(prayCfg.consumeArr[0][0], prayCfg.consumeArr[0][1] - has); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LeagueSproxy.ReqPrayLeague(type).Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |