Skip to content

Commit

Permalink
Add checks to PvE methods and update online status handling
Browse files Browse the repository at this point in the history
Added checks in AstrologianRotation.cs and CustomRotation_Actions.cs to ensure specific actions are not the last used before proceeding. Updated RotationConfigWindow.cs to display player's online status. Modified TargetUpdater.cs to exclude characters with an online status of 5 in filtering logic.
  • Loading branch information
LTS-FFXIV committed Jan 1, 2025
1 parent 4c090af commit 418c469
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static partial void ModifyCombustPvE(ref ActionSetting setting)
static partial void ModifyLightspeedPvE(ref ActionSetting setting)
{
setting.StatusProvide = [StatusID.Lightspeed];
setting.ActionCheck = () => !IsLastAbility(ActionID.LightspeedPvE);
setting.CreateConfig = () => new ActionConfig()
{
TimeToKill = 10,
Expand Down
1 change: 1 addition & 0 deletions RotationSolver.Basic/Rotations/CustomRotation_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal static void LoadActionSetting(ref IBaseAction action)
static partial void ModifyTrueNorthPvE(ref ActionSetting setting)
{
setting.StatusProvide = new[] { StatusID.TrueNorth };
setting.ActionCheck = () => !IsLastAction(ActionID.TrueNorthPvE);
}

static partial void ModifyAddlePvE(ref ActionSetting setting)
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/UI/RotationConfigWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,7 @@ private static unsafe void DrawStatus()
ImGui.Text($"Fate: {DataCenter.FateId}");
}
ImGui.Text($"Height: {Player.Character->ModelContainer.CalculateHeight()}");
ImGui.Text($"OnlineStatus: {Player.OnlineStatus}");
ImGui.Text($"Moving: {DataCenter.IsMoving}");
ImGui.Text($"Stop Moving: {DataCenter.StopMovingRaw}");
ImGui.Text($"CountDownTime: {Service.CountDownTime}");
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/Updaters/TargetUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private static unsafe List<IBattleChara> GetPartyMembers()
{
return DataCenter.AllianceMembers?
.Where(ObjectHelper.IsParty)
.Where(b => b.Character() != null && b.Character()->CharacterData.OnlineStatus != 15 && b.IsTargetable)
.Where(b => b.Character() != null && b.Character()->CharacterData.OnlineStatus != 15 && b.Character()->CharacterData.OnlineStatus != 5 && b.IsTargetable)
.ToList() ?? new List<IBattleChara>();
}
catch (Exception ex)
Expand All @@ -55,7 +55,7 @@ private static unsafe List<IBattleChara> GetAllianceMembers()
{
return DataCenter.AllTargets?
.Where(ObjectHelper.IsAlliance)
.Where(b => b.Character() != null && b.Character()->CharacterData.OnlineStatus != 15 && b.IsTargetable)
.Where(b => b.Character() != null && b.Character()->CharacterData.OnlineStatus != 15 && b.Character()->CharacterData.OnlineStatus != 5 && b.IsTargetable)
.ToList() ?? new List<IBattleChara>();
}
catch (Exception ex)
Expand Down

0 comments on commit 418c469

Please sign in to comment.