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

Commit

Permalink
fix: PLD add Intervention action.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent 1e47bdc commit 83b0364
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions RotationSolver.Default/Tank/PLD_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected override bool DefenseSingleAbility(byte abilitiesRemaining, out IActio
if (abilitiesRemaining == 2)
{
//10
if (OathGauge >= 90 && Sheltron.CanUse(out act)) return true;
if (OathGauge >= 90 && UseOath(out act)) return true;

//30
if (Sentinel.CanUse(out act)) return true;
Expand All @@ -130,12 +130,25 @@ protected override bool DefenseSingleAbility(byte abilitiesRemaining, out IActio
if (Rampart.CanUse(out act)) return true;

//10
if (UseOath(out act)) return true;
if (Bulwark.CanUse(out act)) return true;
if (Sheltron.CanUse(out act)) return true;
}

if (Reprisal.CanUse(out act)) return true;

return false;
}

private static bool UseOath(out IAction act)
{
if (HasTankStance)
{
if (Sheltron.CanUse(out act)) return true;
}
else
{
if (Intervention.CanUse(out act)) return true;
}
return false;
}
}

0 comments on commit 83b0364

Please sign in to comment.