Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: hide control windows when in treasure hunt rolling occupy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 1, 2023
1 parent 30eb898 commit 6f5397e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ internal static void OpenConfigWindow()
internal static void UpdateDisplayWindow()
{
var isValid = MajorUpdater.IsValid
&& (!Service.Config.OnlyShowWithHostileOrInDuty ||
Service.Conditions[ConditionFlag.BoundByDuty] ||
DataCenter.AllHostileTargets.Any(o => o.DistanceToPlayer() <= 25))
&& (!Service.Config.OnlyShowWithHostileOrInDuty
|| Service.Conditions[ConditionFlag.BoundByDuty]
|| DataCenter.AllHostileTargets.Any(o => o.DistanceToPlayer() <= 25))
&& RotationUpdater.RightNowRotation != null
&& !Service.Conditions[ConditionFlag.OccupiedInCutSceneEvent]
&& !Service.Conditions[ConditionFlag.Occupied38] //Treasure hunt.
&& !Service.Conditions[ConditionFlag.BetweenAreas]
&& !Service.Conditions[ConditionFlag.BetweenAreas51]
&& !Service.Conditions[ConditionFlag.WaitingForDuty]
Expand Down

0 comments on commit 6f5397e

Please sign in to comment.