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

Commit

Permalink
fix: macro available for TargetAllForFriendly
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 25, 2023
1 parent 2acf4fc commit cc532b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Actions/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private bool TargetParty(float range, int aoeCount, bool mustUse, out BattleChar

var availableCharas = DataCenter.PartyMembers.Where(player => player.CurrentHp != 0);

if (Service.Config.ActionTargetFriendly ? _action.CanTargetFriendly : (ActionID)ID == ActionID.AethericMimicry)
if (Service.Config.GetValue(SettingsCommand.TargetAllForFriendly) ? _action.CanTargetFriendly : (ActionID)ID == ActionID.AethericMimicry)
{
availableCharas = availableCharas.Union(DataCenter.AllianceMembers);
}
Expand Down
1 change: 0 additions & 1 deletion RotationSolver.Basic/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public class PluginConfiguration : IPluginConfiguration
public bool UseHealWhenNotAHealer = true;
public float HealthDifference = 0.25f;
public float MeleeRangeOffset = 1;
public bool ActionTargetFriendly = false;
public bool TargetFriendly = false;
public float MinLastAbilityAdvanced = 0.1f;

Expand Down
6 changes: 6 additions & 0 deletions RotationSolver.Basic/Data/RSCommandType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ public enum SettingsCommand : byte
///
/// </summary>
AutoSpeedOutOfCombat,

/// <summary>
///
/// </summary>
TargetAllForFriendly,
}

/// <summary>
Expand Down Expand Up @@ -230,6 +235,7 @@ public static class SettingsCommandExtension
SettingsCommand.PreventActions => false,
SettingsCommand.PreventActionsDuty => false,
SettingsCommand.AutoSpeedOutOfCombat => true,
SettingsCommand.TargetAllForFriendly => false,
_ => false,
};
}
2 changes: 1 addition & 1 deletion RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ private void DrawParamTarget()
LocalizationManager.RightLang.ConfigWindow_Param_MoveAreaActionFarthestDesc);

DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_ActionTargetFriendly,
ref Service.Config.ActionTargetFriendly, Service.Default.ActionTargetFriendly);
SettingsCommand.TargetAllForFriendly);

DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_RaiseAll,
ref Service.Config.RaiseAll, Service.Default.RaiseAll);
Expand Down

0 comments on commit cc532b7

Please sign in to comment.