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

Commit

Permalink
fix: fixed target update.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 29, 2023
1 parent c3bbdc8 commit 5e1d9be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,12 @@
"ConfigWindow_Param_VoiceVolume": "Voice volume",
"ConfigWindow_Param_ToastPositional": "Hint positional anticipation by Toast",
"ConfigWindow_Param_SayPositional": "Hint positional anticipation by shouting",
"ConfigWindow_Param_PositionalFeedback": "Positional error feedback on flytext",
"ConfigWindow_Param_DrawPositional": "Draw Positional on the screen",
"ConfigWindow_Param_DrawMeleeRange": "Draw the range of melee on the screen",
"ConfigWindow_Param_DrawMeleeOffset": "Draw the offset of melee on the screen",
"ConfigWindow_Param_AlphaInFill": "The alpha value in fill.",
"ConfigWindow_Param_ShowMoveTarget": "Show the target of the move action",
"ConfigWindow_Param_ShowTarget": "Show Target",
"ConfigWindow_Param_PositionalFeedbackDesc": "Attention: Positional anticipation is experimental, just for reference only.",
"ConfigWindow_Param_PositionalErrorText": "Positional error prompt",
"ConfigWindow_Params_LocationWrongTextDesc": "How do you want to be scolded if you have a positional error ?!",
"ConfigWindow_Param_SayOutStateChanged": "Saying the state changes out",
"ConfigWindow_Param_ShowInfoOnDtr": "Display plugin state on server info",
"ConfigWindow_Param_ShowInfoOnToast": "Display plugin state on toast",
Expand Down
2 changes: 2 additions & 0 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ private static IEnumerable<BattleChara> GetHostileTargets(IEnumerable<BattleChar

allAttackableTargets = allAttackableTargets.Where(b =>
{
if(Svc.ClientState == null) return false;

IEnumerable<string> names = Array.Empty<string>();
if(OtherConfiguration.NoHostileNames.TryGetValue(Svc.ClientState.TerritoryType, out var ns1))
names = names.Union(ns1);
Expand Down

0 comments on commit 5e1d9be

Please sign in to comment.