From 510337133d206a1c7d6680fdd8b727f77467961f Mon Sep 17 00:00:00 2001 From: Aireil <33433913+Aireil@users.noreply.github.com> Date: Sun, 24 Nov 2024 11:41:55 +0100 Subject: [PATCH] Fix IsPvPExcludingDen --- Dalamud/Game/ClientState/ClientState.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs index 4ab69b3911..956989fbbf 100644 --- a/Dalamud/Game/ClientState/ClientState.cs +++ b/Dalamud/Game/ClientState/ClientState.cs @@ -195,7 +195,6 @@ private unsafe void SetupTerritoryTypeDetour(EventFramework* eventFramework, ush if (isPvP != this.IsPvP) { this.IsPvP = isPvP; - this.IsPvPExcludingDen = this.IsPvP && this.TerritoryType != 250; if (this.IsPvP) { @@ -208,6 +207,8 @@ private unsafe void SetupTerritoryTypeDetour(EventFramework* eventFramework, ush this.LeavePvP?.InvokeSafely(); } } + + this.IsPvPExcludingDen = this.IsPvP && this.TerritoryType != 250; } this.setupTerritoryTypeHook.Original(eventFramework, territoryType);