From 2e4d99453201a0e1c8e7e803db0b7c1256b1e159 Mon Sep 17 00:00:00 2001 From: Simon Latusek Date: Wed, 5 Nov 2025 07:40:15 +0100 Subject: [PATCH] queueing for trusts checks levels --- AutoDuty/Helpers/QueueHelper.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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}");