1
0
forked from liza/Questionable

Don't unmount when using vesper bay aetheryte tickets

This commit is contained in:
Liza 2024-08-11 02:14:07 +02:00
parent bb4ab53b21
commit eb97c60065
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -39,7 +39,6 @@ internal static class UseItem
ArgumentNullException.ThrowIfNull(step.ItemId); ArgumentNullException.ThrowIfNull(step.ItemId);
var unmount = serviceProvider.GetRequiredService<UnmountTask>();
if (step.ItemId == VesperBayAetheryteTicket) if (step.ItemId == VesperBayAetheryteTicket)
{ {
unsafe unsafe
@ -53,11 +52,11 @@ internal static class UseItem
.With(quest.Id, step.ItemId.Value, step.CompletionQuestVariablesFlags); .With(quest.Id, step.ItemId.Value, step.CompletionQuestVariablesFlags);
int currentStepIndex = sequence.Steps.IndexOf(step); int currentStepIndex = sequence.Steps.IndexOf(step);
QuestStep? nextStep = sequence.Steps.Skip(currentStepIndex + 1).SingleOrDefault(); QuestStep? nextStep = sequence.Steps.Skip(currentStepIndex + 1).FirstOrDefault();
Vector3? nextPosition = (nextStep ?? step).Position; Vector3? nextPosition = (nextStep ?? step).Position;
return return
[ [
unmount, task, task,
new WaitConditionTask(() => clientState.TerritoryType == 140, new WaitConditionTask(() => clientState.TerritoryType == 140,
$"Wait(territory: {territoryData.GetNameAndId(140)})"), $"Wait(territory: {territoryData.GetNameAndId(140)})"),
serviceProvider.GetRequiredService<MountTask>() serviceProvider.GetRequiredService<MountTask>()
@ -70,6 +69,7 @@ internal static class UseItem
]; ];
} }
var unmount = serviceProvider.GetRequiredService<UnmountTask>();
if (step.GroundTarget == true) if (step.GroundTarget == true)
{ {
ITask task; ITask task;