Fix IsPvPExcludingDen (#2120)

This commit is contained in:
Aireil 2024-11-24 21:35:00 +01:00 committed by GitHub
parent 2fd8e49b34
commit de999b7895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,7 +137,7 @@ internal sealed class ClientState : IInternalDisposableService, IClientState
public bool IsPvP { get; private set; }
/// <inheritdoc/>
public bool IsPvPExcludingDen { get; private set; }
public bool IsPvPExcludingDen => this.IsPvP && this.TerritoryType != 250;
/// <inheritdoc />
public bool IsGPosing => GameMain.IsInGPose();
@ -195,7 +195,6 @@ internal sealed class ClientState : IInternalDisposableService, IClientState
if (isPvP != this.IsPvP)
{
this.IsPvP = isPvP;
this.IsPvPExcludingDen = this.IsPvP && this.TerritoryType != 250;
if (this.IsPvP)
{