diff --git a/BetterGenshinImpact/GameTask/AutoFishing/AutoFishingTrigger.cs b/BetterGenshinImpact/GameTask/AutoFishing/AutoFishingTrigger.cs index c5bd0d8e..2822ab2a 100644 --- a/BetterGenshinImpact/GameTask/AutoFishing/AutoFishingTrigger.cs +++ b/BetterGenshinImpact/GameTask/AutoFishing/AutoFishingTrigger.cs @@ -757,7 +757,7 @@ namespace BetterGenshinImpact.GameTask.AutoFishing { Retry.Do(() => { - if (!SystemControl.IsGenshinImpactActiveByProcess()) + if (IsEnabled && !SystemControl.IsGenshinImpactActiveByProcess()) { _logger.LogWarning("当前获取焦点的窗口不是原神,暂停"); throw new RetryException("当前获取焦点的窗口不是原神"); @@ -1069,7 +1069,7 @@ namespace BetterGenshinImpact.GameTask.AutoFishing { var prevIsExclusive = IsExclusive; IsExclusive = FindButtonForExclusive(content); - if (!prevIsExclusive && IsExclusive) + if (IsEnabled && !prevIsExclusive && IsExclusive) { _logger.LogInformation("→ {Text}", "自动钓鱼,启动!"); var autoThrowRodEnabled = TaskContext.Instance().Config.AutoFishingConfig.AutoThrowRodEnabled; @@ -1127,4 +1127,4 @@ namespace BetterGenshinImpact.GameTask.AutoFishing // ClearDraw(); //} } -} \ No newline at end of file +}