This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30511f7
commit 7d8ab88
Showing
5 changed files
with
188 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
namespace RotationSolver.Default.Tank; | ||
|
||
[SourceCode("https://github.com/ArchiDog1998/RotationSolver/blob/main/RotationSolver.Default/Tank/WAR_Default.cs")] | ||
public sealed class WAR_Old : WAR_Base | ||
{ | ||
public override string GameVersion => "6.0"; | ||
|
||
public override string RotationName => "Old"; | ||
|
||
[RotationDesc(ActionID.ShakeItOff, ActionID.Reprisal)] | ||
protected override bool DefenseAreaAbility(byte abilitiesRemaining, out IAction act) | ||
{ | ||
if (ShakeItOff.CanUse(out act, CanUseOption.MustUse)) return true; | ||
if (Reprisal.CanUse(out act, CanUseOption.MustUse)) return true; | ||
return false; | ||
} | ||
|
||
protected override bool GeneralGCD(out IAction act) | ||
{ | ||
//¸ã¸ã¹¥»÷ | ||
if (PrimalRend.CanUse(out act, CanUseOption.MustUse) && !IsMoving) | ||
{ | ||
if (PrimalRend.Target.DistanceToPlayer() < 1) return true; | ||
} | ||
|
||
if (SteelCyclone.CanUse(out act)) return true; | ||
if(!Player.WillStatusEndGCD(3, 0, true, StatusID.SurgingTempest)) | ||
{ | ||
if (InnerBeast.CanUse(out act)) return true; | ||
} | ||
|
||
if (MythrilTempest.CanUse(out act)) return true; | ||
if (Overpower.CanUse(out act)) return true; | ||
|
||
if (StormsEye.CanUse(out act)) return true; | ||
if (StormsPath.CanUse(out act)) return true; | ||
if (Maim.CanUse(out act)) return true; | ||
if (HeavySwing.CanUse(out act)) return true; | ||
|
||
if (SpecialType == SpecialCommandType.MoveForward && MoveForwardAbility(1, out act)) return true; | ||
|
||
if (Tomahawk.CanUse(out act)) return true; | ||
|
||
return false; | ||
} | ||
|
||
[RotationDesc(ActionID.RawIntuition, ActionID.Vengeance, ActionID.Rampart, ActionID.RawIntuition, ActionID.Reprisal)] | ||
protected override bool DefenseSingleAbility(byte abilitiesRemaining, out IAction act) | ||
{ | ||
if (abilitiesRemaining == 2) | ||
{ | ||
if (HostileTargets.Count() > 1) | ||
{ | ||
//10 | ||
if (RawIntuition.CanUse(out act)) return true; | ||
} | ||
|
||
//30 | ||
if (Vengeance.CanUse(out act)) return true; | ||
|
||
//20 | ||
if (Rampart.CanUse(out act)) return true; | ||
|
||
//10 | ||
if (RawIntuition.CanUse(out act)) return true; | ||
} | ||
if (Reprisal.CanUse(out act)) return true; | ||
|
||
return false; | ||
} | ||
|
||
protected override bool AttackAbility(byte abilitiesRemaining, out IAction act) | ||
{ | ||
if (!Player.WillStatusEndGCD(3, 0, true, StatusID.SurgingTempest) || !MythrilTempest.EnoughLevel) | ||
{ | ||
if (Berserk.CanUse(out act)) return true; | ||
} | ||
|
||
if (Player.GetHealthRatio() < 0.6f) | ||
{ | ||
if (ThrillOfBattle.CanUse(out act)) return true; | ||
if (Equilibrium.CanUse(out act)) return true; | ||
} | ||
|
||
if (!HasTankStance && NascentFlash.CanUse(out act)) return true; | ||
|
||
if (Infuriate.CanUse(out act, CanUseOption.EmptyOrSkipCombo)) return true; | ||
|
||
if (Orogeny.CanUse(out act)) return true; | ||
if (Upheaval.CanUse(out act)) return true; | ||
|
||
if (Onslaught.CanUse(out act, CanUseOption.MustUse) && !IsMoving) return true; | ||
|
||
return false; | ||
} | ||
} |