mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-17 09:26:50 +08:00
不进行切换检测偏移适配 (#2256)
This commit is contained in:
@@ -40,6 +40,7 @@ using BetterGenshinImpact.GameTask.AutoDomain.Model;
|
||||
using BetterGenshinImpact.GameTask.Common;
|
||||
using Compunet.YoloSharp;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using BetterGenshinImpact.GameTask.AutoFight;
|
||||
|
||||
namespace BetterGenshinImpact.GameTask.AutoDomain;
|
||||
|
||||
@@ -646,6 +647,7 @@ public class AutoDomainTask : ISoloTask
|
||||
{
|
||||
try
|
||||
{
|
||||
AutoFightTask.FightStatusFlag = true;
|
||||
while (!cts.Token.IsCancellationRequested)
|
||||
{
|
||||
// 通用化战斗策略
|
||||
@@ -668,6 +670,7 @@ public class AutoDomainTask : ISoloTask
|
||||
{
|
||||
Logger.LogInformation("自动战斗线程结束");
|
||||
Simulation.ReleaseAllKey();
|
||||
AutoFightTask.FightStatusFlag = false;
|
||||
}
|
||||
}, cts.Token);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user