mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
fixed #3099
This commit is contained in:
@@ -13,7 +13,7 @@ namespace BetterGenshinImpact.GameTask.AutoFight;
|
||||
[Serializable]
|
||||
public partial class AutoFightConfig : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _strategyName = "";
|
||||
[ObservableProperty] private string _strategyName = "根据队伍自动选择";
|
||||
|
||||
/// <summary>
|
||||
/// 英文逗号分割 强制指定队伍角色
|
||||
|
||||
@@ -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\");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user