diff --git a/AutoDuty/Helpers/QueueHelper.cs b/AutoDuty/Helpers/QueueHelper.cs index 876decb5..cafcd2a4 100644 --- a/AutoDuty/Helpers/QueueHelper.cs +++ b/AutoDuty/Helpers/QueueHelper.cs @@ -78,6 +78,12 @@ private void QueueTrust() if (TrustHelper.State == ActionState.Running) return; AgentDawn* agentDawn = AgentDawn.Instance(); + if (!TrustHelper.LevelsSetFor(_content)) + { + TrustHelper.GetLevels(_content); + return; + } + if (!agentDawn->IsAddonReady()) { if (!EzThrottler.Throttle("OpenDawn", 5000) || !AgentHUD.Instance()->IsMainCommandEnabled(82)) return; @@ -94,6 +100,14 @@ private void QueueTrust() return; } + if(!_content.CanTrustRun()) + { + Svc.Log.Debug("Queue Helper - Trust can't run, stopping QueueHelper"); + this.Stop(); + Plugin.Stage = Stage.Stopped; + return; + } + if ((byte) agentDawn->SelectedContentId != _content.DawnRowId) { Svc.Log.Debug($"Queue Helper - Clicking: {_content.EnglishName} at {_content.RowId} with dawn {_content.DawnRowId} instead of {agentDawn->SelectedContentId}");