From 0c89267a40f9ac16a725750308bb6e97043a0491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Mon, 3 Apr 2023 08:58:23 +0800 Subject: [PATCH] fix: the hot double check only valid in 3s. --- .../Actions/BaseAction/BaseAction_ActionInfo.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RotationSolver.Basic/Actions/BaseAction/BaseAction_ActionInfo.cs b/RotationSolver.Basic/Actions/BaseAction/BaseAction_ActionInfo.cs index 67ea27a5a..ebbe32a39 100644 --- a/RotationSolver.Basic/Actions/BaseAction/BaseAction_ActionInfo.cs +++ b/RotationSolver.Basic/Actions/BaseAction/BaseAction_ActionInfo.cs @@ -92,10 +92,11 @@ public unsafe virtual bool CanUse(out IAction act, CanUseOption option = CanUseO { if (DataCenter.IsMoving && !player.HasStatus(true, CustomRotation.Swiftcast.StatusProvide)) return false; - - if (IsEot && IsFriendly && IActionHelper.IsLastGCD(true, this)) return false; } + if (IsGeneralGCD && IsEot && IsFriendly && IActionHelper.IsLastGCD(true, this) + && DataCenter.TimeSinceLastAction.TotalSeconds < 3) return false; + if (!FindTarget(mustUse, out var target) || target == null) return false; if (ActionCheck != null && !ActionCheck(target)) return false;