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

Commit

Permalink
fix: add rotation property called IsInDuty.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 20, 2023
1 parent af219ec commit 37ac0d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static bool IsLongerThan(float time)
/// </summary>
public static bool InBurst => DataCenter.SpecialType == SpecialCommandType.Burst || Service.Config.GetValue(Configuration.PluginConfigBool.AutoBurst);

bool _canUseHealAction =>
private bool CanUseHealAction =>
//Job
(ClassJob.GetJobRole() == JobRole.Healer || Service.Config.GetValue(Configuration.PluginConfigBool.UseHealWhenNotAHealer))
&& Service.Config.GetValue(Configuration.PluginConfigBool.AutoHeal)
Expand All @@ -212,22 +212,22 @@ public static bool IsLongerThan(float time)
/// <summary>
///
/// </summary>
public virtual bool CanHealAreaAbility => DataCenter.CanHealAreaAbility && _canUseHealAction;
public virtual bool CanHealAreaAbility => DataCenter.CanHealAreaAbility && CanUseHealAction;

/// <summary>
///
/// </summary>
public virtual bool CanHealAreaSpell => DataCenter.CanHealAreaSpell && _canUseHealAction;
public virtual bool CanHealAreaSpell => DataCenter.CanHealAreaSpell && CanUseHealAction;

/// <summary>
///
/// </summary>
public virtual bool CanHealSingleAbility => DataCenter.CanHealSingleAbility && _canUseHealAction;
public virtual bool CanHealSingleAbility => DataCenter.CanHealSingleAbility && CanUseHealAction;

/// <summary>
///
/// </summary>
public virtual bool CanHealSingleSpell => DataCenter.CanHealSingleSpell && _canUseHealAction;
public virtual bool CanHealSingleSpell => DataCenter.CanHealSingleSpell && CanUseHealAction;

/// <summary>
///
Expand Down Expand Up @@ -278,6 +278,11 @@ public static bool IsLongerThan(float time)
/// </summary>
public static bool IsInHighEndDuty => DataCenter.IsInHighEndDuty;

/// <summary>
/// Is player in duty.
/// </summary>
public static bool IsInDuty => Svc.Condition[ConditionFlag.BoundByDuty];

/// <summary>
///
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ internal class Strings
{ nameof(CustomRotation.IsManual), "The state of manual. True for manual."},

{ nameof(CustomRotation.IsInHighEndDuty), "Is in the high-end duty"},
{ nameof(CustomRotation.IsInDuty), "Is player in duty"},
{ nameof(CustomRotation.Ping), "Your ping"},
{ nameof(CustomRotation.NextAbilityToNextGCD), "Time from next ability to next GCD"},

Expand Down

0 comments on commit 37ac0d3

Please sign in to comment.