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

Commit

Permalink
fix: remove partyList.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed May 18, 2023
1 parent 982cea6 commit 81eb558
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ECommons
6 changes: 0 additions & 6 deletions RotationSolver.Basic/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ public unsafe static IEnumerable<IntPtr> GetAddons<T>() where T : struct
[PluginService]
public static TargetManager TargetManager { get; private set; }

[PluginService]
public static PartyList PartyList { get; private set; }

[PluginService]
public static DtrBar DtrBar { get; private set; }

[PluginService]
public static ToastGui ToastGui { get; private set; }
[PluginService]
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/PreviewUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static void UpdateEntry()
{
try
{
_dtrEntry ??= Service.DtrBar.Get("Rotation Solver");
_dtrEntry ??= Svc.DtrBar.Get("Rotation Solver");
}
catch
{
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private static float GetPartyMemberHPRatio(BattleChara member)

private static IEnumerable<BattleChara> GetPartyMembers(IEnumerable<BattleChara> allTargets)
{
var party = Service.PartyList.Select(p => p.GameObject).OfType<BattleChara>().Where(b => b.DistanceToPlayer() <= 30);
var party = Svc.Party.Select(p => p.GameObject).OfType<BattleChara>().Where(b => b.DistanceToPlayer() <= 30);

if (!party.Any()) party = new BattleChara[] { Player.Object };

Expand Down

0 comments on commit 81eb558

Please sign in to comment.