Skip to content

Commit

Permalink
Fix IsPvPExcludingDen
Browse files Browse the repository at this point in the history
  • Loading branch information
Aireil authored Nov 24, 2024
1 parent dbbc230 commit 5103371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dalamud/Game/ClientState/ClientState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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);
Expand Down

0 comments on commit 5103371

Please sign in to comment.