From 1bc17832bbabea23fd227f79f708d5e796f9fcf8 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 8 Nov 2024 00:42:53 +0100 Subject: [PATCH] Kill enemies if it stops you from teleporting to an aetheryte --- Questionable/Controller/Steps/Shared/AetheryteShortcut.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Questionable/Controller/Steps/Shared/AetheryteShortcut.cs b/Questionable/Controller/Steps/Shared/AetheryteShortcut.cs index 7f2a8fd03..af5753334 100644 --- a/Questionable/Controller/Steps/Shared/AetheryteShortcut.cs +++ b/Questionable/Controller/Steps/Shared/AetheryteShortcut.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; +using Dalamud.Game.ClientState.Conditions; using Dalamud.Plugin.Services; using Microsoft.Extensions.Logging; using Questionable.Controller.Steps.Common; @@ -56,6 +57,7 @@ internal static class AetheryteShortcut QuestFunctions questFunctions, IClientState clientState, IChatGui chatGui, + ICondition condition, AetheryteData aetheryteData) : TaskExecutor { private bool _teleported; @@ -217,6 +219,8 @@ internal static class AetheryteShortcut throw new TaskException("Unable to teleport to aetheryte"); } } + + public override bool WasInterrupted() => condition[ConditionFlag.InCombat] || base.WasInterrupted(); } internal sealed record MoveAwayFromAetheryte(EAetheryteLocation TargetAetheryte) : ITask