Don't unmount when using vesper bay aetheryte tickets

pull/15/head^2
Liza 2024-08-11 02:14:07 +02:00
parent bb4ab53b21
commit eb97c60065
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,6 @@ internal static class UseItem
ArgumentNullException.ThrowIfNull(step.ItemId);
var unmount = serviceProvider.GetRequiredService<UnmountTask>();
if (step.ItemId == VesperBayAetheryteTicket)
{
unsafe
@ -53,11 +52,11 @@ internal static class UseItem
.With(quest.Id, step.ItemId.Value, step.CompletionQuestVariablesFlags);
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;
return
[
unmount, task,
task,
new WaitConditionTask(() => clientState.TerritoryType == 140,
$"Wait(territory: {territoryData.GetNameAndId(140)})"),
serviceProvider.GetRequiredService<MountTask>()
@ -70,6 +69,7 @@ internal static class UseItem
];
}
var unmount = serviceProvider.GetRequiredService<UnmountTask>();
if (step.GroundTarget == true)
{
ITask task;