From fe27d8c46bfa387366079eae853542ed29f20313 Mon Sep 17 00:00:00 2001 From: MidoriKami <9083275+MidoriKami@users.noreply.github.com> Date: Sat, 18 Feb 2023 11:59:42 -0800 Subject: [PATCH] Add 0x4000_0002 Duty Completed Flytext Shown even to DutyState.cs --- Dalamud/Game/DutyState/DutyState.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/DutyState/DutyState.cs b/Dalamud/Game/DutyState/DutyState.cs index f828edad8..11eeff9f3 100644 --- a/Dalamud/Game/DutyState/DutyState.cs +++ b/Dalamud/Game/DutyState/DutyState.cs @@ -121,8 +121,15 @@ public unsafe class DutyState : IDisposable, IServiceType this.DutyRecommenced.InvokeSafely(this, this.clientState.TerritoryType); break; + // Duty Completed Flytext Shown + case 0x4000_0002 when !this.CompletedThisTerritory: + this.IsDutyStarted = false; + this.CompletedThisTerritory = true; + this.DutyCompleted.InvokeSafely(this, this.clientState.TerritoryType); + break; + // Duty Completed - case 0x4000_0003: + case 0x4000_0003 when !this.CompletedThisTerritory: this.IsDutyStarted = false; this.CompletedThisTerritory = true; this.DutyCompleted.InvokeSafely(this, this.clientState.TerritoryType);