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

Commit

Permalink
fix: add an option for esuna all.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 8, 2023
1 parent 52ddf21 commit a64db9c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions RotationSolver/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public class PluginConfiguration : IPluginConfiguration
public bool ShowWorkTaskFPS = true;

public bool UseStopCasting = false;
public bool EsunaAll = false;

public string PositionalErrorText = string.Empty;

Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings_Major.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ internal partial class Strings
public string Configwindow_Param_UseItemDesc { get; set; } = "Use poison, WIP";
public string Configwindow_Param_Conditon { get; set; } = "Condition";
public string Configwindow_Param_StartOnCountdown { get; set; } = "Turn on auto-rotation on countdown";
public string Configwindow_Param_EsunaAll { get; set; } = "Esuna All Statuses.";
public string Configwindow_Param_InterruptibleMoreCheck { get; set; } = "Interrupt the action with action type check.";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private IAction GCD(byte abilityRemain, bool helpDefenseAOE, bool helpDefenseSin
if (helpDefenseSingle && DefenseSingleGCD(out act)) return act;

//Esuna
if ((specialType == SpecialCommandType.EsunaShieldNorth || !HasHostilesInRange)
if ((specialType == SpecialCommandType.EsunaShieldNorth || !HasHostilesInRange || Service.Configuration.EsunaAll)
&& TargetUpdater.WeakenPeople.Any()
|| TargetUpdater.DyingPeople.Any())
{
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver/Windows/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ private void DrawParamCondition()
DrawCheckBox(LocalizationManager.RightLang.Configwindow_Param_StartOnCountdown,
ref Service.Configuration.StartOnCountdown);

DrawCheckBox(LocalizationManager.RightLang.Configwindow_Param_EsunaAll,
ref Service.Configuration.EsunaAll);

DrawCheckBox(LocalizationManager.RightLang.Configwindow_Param_HealOutOfCombat,
ref Service.Configuration.HealOutOfCombat);

Expand Down

0 comments on commit a64db9c

Please sign in to comment.