From cf39026322c8d0a65738ad954f1c6458535d5c3f Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期六, 07 二月 2026 11:10:50 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroTrainWin.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 07fd7f1..b9f6212 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -308,7 +308,7 @@
         deleteTip.SetActive(false);
         if (hero != null && hero.Quality == 1 && HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId))
         {
-            
+
             deleteTip.SetActive(true);
         }
     }
@@ -578,7 +578,14 @@
                 });
 
                 HeroUIManager.Instance.lastFightPower = new KeyValuePair<string, long>(hero.itemHero.guid, hero.CalculateFightPower(false));
+                // 濡傛灉姝eソ娑堣�楀畬锛屼笉瑙﹀彂鍥哄畾姒傜巼鐨勫垽瀹�
+                if (!TimingGiftManager.Instance.TryAddWhenExactConsumption(3, PackType.Item,itemID, needCount))
+                {
+                    TimingGiftManager.Instance.TryAddWithFixedProbabilityWhenSufficient(3, PackType.Item,itemID, needCount);
+                }
+                return;
             }
+            TimingGiftManager.Instance.TryAddWhenInsufficient(3, itemID, needCount);
 
         }
 
@@ -925,7 +932,7 @@
         }
 
     }
-    
+
     #region 绐佺牬鍔熻兘
 
     void DisplayTrainOrBreak(HeroInfo hero)

--
Gitblit v1.8.0