This commit is contained in:
辉鸭蛋
2026-05-06 00:47:12 +08:00
parent 2e57a3aae9
commit ea13091320
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ namespace BetterGenshinImpact.GameTask.AutoFight;
[Serializable]
public partial class AutoFightConfig : ObservableObject
{
[ObservableProperty] private string _strategyName = "";
[ObservableProperty] private string _strategyName = "根据队伍自动选择";
/// <summary>
/// 英文逗号分割 强制指定队伍角色

View File

@@ -80,7 +80,7 @@ internal class AutoFightHandler : IActionHandler
private string GetFightStrategy(AutoFightConfig config)
{
var path = Global.Absolute(@"User\AutoFight\" + config.StrategyName + ".txt");
if ("根据队伍自动选择".Equals(config.StrategyName))
if ("根据队伍自动选择".Equals(config.StrategyName) || string.IsNullOrEmpty(config.StrategyName))
{
path = Global.Absolute(@"User\AutoFight\");
}