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

Commit

Permalink
Added new Positional Feature to RPR
Browse files Browse the repository at this point in the history
  • Loading branch information
Four-amer committed Sep 25, 2024
1 parent 117714f commit 7245964
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions BasicRotations/Melee/RPR_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,29 @@ 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 +203,29 @@ 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 7245964

Please sign in to comment.