From c13298a03a71b14fc50c68aabeb7fd581851722b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 20 三月 2026 10:25:15 +0800
Subject: [PATCH] 492 武将登场 修复升星计划没获得武将本体时0星可领取奖励的bug

---
 Main/System/HeroDebut/HeroDebutManager.cs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Main/System/HeroDebut/HeroDebutManager.cs b/Main/System/HeroDebut/HeroDebutManager.cs
index 18e6e97..d966740 100644
--- a/Main/System/HeroDebut/HeroDebutManager.cs
+++ b/Main/System/HeroDebut/HeroDebutManager.cs
@@ -505,6 +505,9 @@
         var heroConfig = HeroConfig.Get(heroId);
         if (heroConfig == null) return 0;
 
+        // 娌¤幏寰楁灏嗘湰浣撲笉鍙鍙�
+        if (!HeroManager.Instance.HasHero(heroId))return 0;
+        
         if (!starHeroIndexDict.TryGetValue(actNum, out int index)) return 0;
         if (IsStarUpFreeHave(index, config.AwardIndex)) return 2;
         if (IsHeroStarCntOk(heroConfig.HeroID, config.NeedStar)) return 1;

--
Gitblit v1.8.0