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

Commit

Permalink
fix: Esuna people when no hostile target in range.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 25, 2023
1 parent 1099889 commit 3f0b585
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 5 additions & 5 deletions RotationSolver/Localization/EnumTranslations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ internal static class EnumTranslations

internal static string ToName(this ComboConditionType type) => type switch
{
ComboConditionType.Bool => "Boolean",
ComboConditionType.Byte => "Byte",
ComboConditionType.Time => "Time",
ComboConditionType.TimeGCD => "GCD",
ComboConditionType.Last => "Action",
ComboConditionType.Bool => LocalizationManager.RightLang.ComboConditionType_Bool,
ComboConditionType.Byte => LocalizationManager.RightLang.ComboConditionType_Byte,
ComboConditionType.Time => LocalizationManager.RightLang.ComboConditionType_Time,
ComboConditionType.TimeGCD => LocalizationManager.RightLang.ComboConditionType_GCD,
ComboConditionType.Last => LocalizationManager.RightLang.ComboConditionType_Last,
_ => string.Empty,
};

Expand Down
9 changes: 9 additions & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,15 @@ internal class Strings
public string Action_Attack { get; set; } = "Attack";
#endregion

#region ComboConditionType
public string ComboConditionType_Bool { get; set; } = "Boolean";
public string ComboConditionType_Byte { get; set; } = "Byte";
public string ComboConditionType_Time { get; set; } = "Time";
public string ComboConditionType_GCD { get; set; } = "GCD";
public string ComboConditionType_Last { get; set; } = "Last";

#endregion

#region ActionConditionType
public string ActionConditionType_Elapsed { get; set; } = "Elapsed";
public string ActionConditionType_ElapsedGCD { get; set; } = "ElapsedGCD ";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ private IAction GCD(byte abilityRemain, bool helpDefenseAOE, bool helpDefenseSin
if (helpDefenseSingle && DefenseSingleGCD(out act)) return act;

//Esuna
if (specialType == SpecialCommandType.EsunaShieldNorth && TargetUpdater.WeakenPeople.Any() || TargetUpdater.DyingPeople.Any())
if ((specialType == SpecialCommandType.EsunaShieldNorth || !HasHostilesInRange)
&& TargetUpdater.WeakenPeople.Any()
|| TargetUpdater.DyingPeople.Any())
{
if (Job.GetJobRole() == JobRole.Healer && Esuna.CanUse(out act, mustUse: true)) return act;
}
Expand Down

0 comments on commit 3f0b585

Please sign in to comment.