From 5e6d80f5aeba47693ee593031bb35fcc308983ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Fri, 6 Oct 2023 13:32:56 +0800 Subject: [PATCH] fix: social update only showed in duty. --- RotationSolver/Updaters/SocialUpdater.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RotationSolver/Updaters/SocialUpdater.cs b/RotationSolver/Updaters/SocialUpdater.cs index 787d819fa..993d458dd 100644 --- a/RotationSolver/Updaters/SocialUpdater.cs +++ b/RotationSolver/Updaters/SocialUpdater.cs @@ -87,10 +87,8 @@ static void ClientState_TerritoryChanged(ushort id) DataCenter.ResetAllLastActions(); var territory = Service.GetSheet().GetRow(id); - if (territory?.ContentFinderCondition?.Value?.RowId != 0) - { - _canSaying = true; - } + _canSaying = territory?.ContentFinderCondition?.Value?.RowId != 0; + InPvp = territory?.IsPvpZone ?? false; DataCenter.TerritoryContentType = (TerritoryContentType)(territory?.ContentFinderCondition?.Value?.ContentType?.Value?.RowId ?? 0);