Kill enemies if it stops you from teleporting to an aetheryte
This commit is contained in:
parent
59506bc9ee
commit
1bc17832bb
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
using Dalamud.Game.ClientState.Conditions;
|
||||||
using Dalamud.Plugin.Services;
|
using Dalamud.Plugin.Services;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Questionable.Controller.Steps.Common;
|
using Questionable.Controller.Steps.Common;
|
||||||
@ -56,6 +57,7 @@ internal static class AetheryteShortcut
|
|||||||
QuestFunctions questFunctions,
|
QuestFunctions questFunctions,
|
||||||
IClientState clientState,
|
IClientState clientState,
|
||||||
IChatGui chatGui,
|
IChatGui chatGui,
|
||||||
|
ICondition condition,
|
||||||
AetheryteData aetheryteData) : TaskExecutor<Task>
|
AetheryteData aetheryteData) : TaskExecutor<Task>
|
||||||
{
|
{
|
||||||
private bool _teleported;
|
private bool _teleported;
|
||||||
@ -217,6 +219,8 @@ internal static class AetheryteShortcut
|
|||||||
throw new TaskException("Unable to teleport to aetheryte");
|
throw new TaskException("Unable to teleport to aetheryte");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override bool WasInterrupted() => condition[ConditionFlag.InCombat] || base.WasInterrupted();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal sealed record MoveAwayFromAetheryte(EAetheryteLocation TargetAetheryte) : ITask
|
internal sealed record MoveAwayFromAetheryte(EAetheryteLocation TargetAetheryte) : ITask
|
||||||
|
Loading…
Reference in New Issue
Block a user