Skip to content

Commit

Permalink
Merge pull request #506 from FFXIV-CombatReborn/pokeball
Browse files Browse the repository at this point in the history
Add checks to PvE methods and update online status handling
  • Loading branch information
LTS-FFXIV authored Jan 1, 2025
2 parents 4c090af + 418c469 commit ecb1a13
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 ecb1a13

Please sign in to comment.