From: Liza Carvelli Date: Sat, 8 Mar 2025 01:56:36 +0000 (+0100) Subject: Add extra check to free fantasia pick-up logic X-Git-Tag: v4.24~1 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=1d91afd29acea35e140936f5d6d3fb949b368c4d;p=Questionable.git Add extra check to free fantasia pick-up logic --- diff --git a/Questionable/Controller/Steps/Shared/ExtraConditionUtils.cs b/Questionable/Controller/Steps/Shared/ExtraConditionUtils.cs index f15d313f..0c72f2ad 100644 --- a/Questionable/Controller/Steps/Shared/ExtraConditionUtils.cs +++ b/Questionable/Controller/Steps/Shared/ExtraConditionUtils.cs @@ -2,6 +2,7 @@ using System; using System.Numerics; using Dalamud.Plugin.Services; using FFXIVClientStructs.FFXIV.Client.Game; +using FFXIVClientStructs.FFXIV.Client.Game.UI; using Microsoft.Extensions.Logging; using Questionable.Model.Questing; @@ -70,6 +71,13 @@ internal sealed class ExtraConditionUtils return true; } + UIState* uiState = UIState.Instance(); + if (uiState != null && uiState->IsUnlockLinkUnlocked(505)) + { + _logger.LogInformation("Already picked up free fantasia"); + return true; + } + return false; } }