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 #72 from SonicZeHedgehog/Update-SAM-Rotation-for-DT
Browse files Browse the repository at this point in the history
Update SAM_Default.cs
  • Loading branch information
Tykku authored Jul 13, 2024
2 parents c8568f1 + beab6de commit d02158c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions BasicRotations/Melee/SAM_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ protected override bool AttackAbility(IAction nextGCD, out IAction? act)
if (HissatsuSeneiPvE.CanUse(out act)) return true;
}

if (ShohaPvE.CanUse(out act)) return true;
if (ShohaPvE.CanUse(out act, skipAoeCheck: true)) return true; // Ignores how many targets under actions

if (Kenki >= 50 && IkishotenPvE.Cooldown.WillHaveOneCharge(10) || Kenki >= AddKenki || IsTargetBoss && IsTargetDying)
{
if (ZanshinPvE.CanUse(out act, skipAoeCheck: true)) return true; // Ignores how many targets under actions
if (HissatsuKyutenPvE.CanUse(out act)) return true;
if (HissatsuShintenPvE.CanUse(out act)) return true;
}
Expand Down Expand Up @@ -83,6 +84,8 @@ protected override bool GeneralGCD(out IAction? act)

if (KaeshiGokenPvE.CanUse(out act, skipAoeCheck: true, usedUp: true)) return true;
if (KaeshiSetsugekkaPvE.CanUse(out act, skipAoeCheck: true, usedUp: true)) return true;
if (TendoKaeshiGokenPvE.CanUse(out act, skipAoeCheck: true, usedUp: true)) return true;
if (TendoKaeshiSetsugekkaPvE.CanUse(out act, skipAoeCheck: true, usedUp: true)) return true;

if ((!IsTargetBoss || (HostileTarget?.HasStatus(true, StatusID.Higanbana) ?? false)) && HasMoon && HasFlower
&& OgiNamikiriPvE.CanUse(out act, skipAoeCheck: true)) return true;
Expand All @@ -93,10 +96,12 @@ protected override bool GeneralGCD(out IAction? act)
}
if (SenCount == 2)
{
if (TendoGokenPvE.CanUse(out act)) return true;
if (TenkaGokenPvE.CanUse(out act, skipAoeCheck: !MidareSetsugekkaPvE.EnoughLevel)) return true;
}
if (SenCount == 3)
{
if (TendoSetsugekkaPvE.CanUse(out act)) return true;
if (MidareSetsugekkaPvE.CanUse(out act)) return true;
}

Expand All @@ -116,8 +121,8 @@ protected override bool GeneralGCD(out IAction? act)

if (!HaveMeikyoShisui)
{
if (GyofuPvE.CanUse(out act)) return true;
if (HakazePvE.CanUse(out act)) return true;

if (EnpiPvE.CanUse(out act)) return true;
}

Expand All @@ -130,4 +135,4 @@ protected override bool GeneralGCD(out IAction? act)
private static bool HaveMeikyoShisui => Player.HasStatus(true, StatusID.MeikyoShisui);

#endregion
}
}

0 comments on commit d02158c

Please sign in to comment.