From 69fdc58cb97714f856df268f08451f2ba7e5ecf2 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 21 一月 2026 10:40:56 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/Main/MainWin.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Main/System/Main/MainWin.cs b/Main/System/Main/MainWin.cs
index 926d3a4..27c94bb 100644
--- a/Main/System/Main/MainWin.cs
+++ b/Main/System/Main/MainWin.cs
@@ -384,7 +384,7 @@
     {
         if (string.IsNullOrEmpty(guid))
         {
-            var tmpHero = TeamManager.Instance.GetTeam(TeamType.Story).GetNextServerHero("");
+            var tmpHero = TeamManager.Instance.GetTeam(BattlePreSetType.Story).GetNextServerHero("");
             if (tmpHero != null)
             {
                 AutoFightModel.Instance.fightingHeroSkinID = tmpHero.SkinID;
@@ -409,7 +409,7 @@
             cdTween.SetStartState();
             cdTween.Play(() =>
             {
-                var tmpHero = TeamManager.Instance.GetTeam(TeamType.Story).GetNextServerHero(AutoFightModel.Instance.heroGuid);
+                var tmpHero = TeamManager.Instance.GetTeam(BattlePreSetType.Story).GetNextServerHero(AutoFightModel.Instance.heroGuid);
                 if (tmpHero != null)
                 {
                     AutoFightModel.Instance.fightingHeroSkinID = tmpHero.SkinID;
@@ -430,7 +430,7 @@
 
         if (AutoFightModel.Instance.fightingHeroSkinID == 0)
         {
-            var tmpHero = TeamManager.Instance.GetTeam(TeamType.Story).GetNextServerHero(AutoFightModel.Instance.heroGuid);
+            var tmpHero = TeamManager.Instance.GetTeam(BattlePreSetType.Story).GetNextServerHero(AutoFightModel.Instance.heroGuid);
             if (tmpHero != null)
             {
                 AutoFightModel.Instance.fightingHeroSkinID = tmpHero.SkinID;

--
Gitblit v1.8.0