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

Commit

Permalink
Merge pull request #258 from Four-amer/main
Browse files Browse the repository at this point in the history
Added new Positional Feature to RPR
  • Loading branch information
LTS-FFXIV authored Sep 25, 2024
2 parents cb77e2e + 0041d76 commit 9afaa65
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions BasicRotations/Melee/RPR_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,28 @@ protected override bool GeneralGCD(out IAction? act)
if (HasSoulReaver)
{
if (GuillotinePvE.CanUse(out act)) return true;

if (Player.HasStatus(true, StatusID.EnhancedGallows))
{
if (GallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else if (Player.HasStatus(true, StatusID.EnhancedGibbet))
{
if (GibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}

// Try using Gallows/Gibbet that player is in position for when without Enchanced status
else if (CanHitPositional(EnemyPositional.Rear, GallowsPvE.Target.Target))
{
if (GallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else if (CanHitPositional(EnemyPositional.Flank, GibbetPvE.Target.Target))
{
if (GibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else
{
if (GallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
if (GibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}
}
Expand Down Expand Up @@ -186,12 +202,28 @@ private bool ItsGluttonyTime(out IAction? act)
if (ExecutionerReady)
{
if (ExecutionersGuillotinePvE.CanUse(out act)) return true;

if (Player.HasStatus(true, StatusID.EnhancedGallows))
{
if (ExecutionersGallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else if (Player.HasStatus(true, StatusID.EnhancedGibbet))
{
if (ExecutionersGibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}

// Try using Executioners Gallows/Gibbet that player is in position for when without Enchanced status
else if (CanHitPositional(EnemyPositional.Rear, ExecutionersGallowsPvE.Target.Target))
{
if (ExecutionersGallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else if (CanHitPositional(EnemyPositional.Flank, ExecutionersGibbetPvE.Target.Target))
{
if (ExecutionersGibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}
else
{
if (ExecutionersGallowsPvE.CanUse(out act, skipComboCheck: true)) return true;
if (ExecutionersGibbetPvE.CanUse(out act, skipComboCheck: true)) return true;
}
}
Expand Down

0 comments on commit 9afaa65

Please sign in to comment.