From 0469a017c7e77e92c7d1d97bca9fd7fa79fb6ace Mon Sep 17 00:00:00 2001
From: Aireil <33433913+Aireil@users.noreply.github.com>
Date: Sun, 24 Nov 2024 12:01:48 +0100
Subject: [PATCH] Fix IsPvPExcludingDen
---
Dalamud/Game/ClientState/ClientState.cs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Dalamud/Game/ClientState/ClientState.cs b/Dalamud/Game/ClientState/ClientState.cs
index 4ab69b3911..c898e107ab 100644
--- a/Dalamud/Game/ClientState/ClientState.cs
+++ b/Dalamud/Game/ClientState/ClientState.cs
@@ -137,7 +137,7 @@ public unsafe bool IsLoggedIn
public bool IsPvP { get; private set; }
///
- public bool IsPvPExcludingDen { get; private set; }
+ public bool IsPvPExcludingDen => this.IsPvP && this.TerritoryType != 250;
///
public bool IsGPosing => GameMain.IsInGPose();
@@ -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)
{