From 45d3d873a7740886fa09f35c9fea2830f4563072 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 11:04:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into h5version

---
 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 dae5d18..6677ab2 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);
         }
     }
@@ -580,7 +580,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);
 
         }
 
@@ -927,7 +934,7 @@
         }
 
     }
-    
+
     #region 绐佺牬鍔熻兘
 
     void DisplayTrainOrBreak(HeroInfo hero)

--
Gitblit v1.8.0