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 an option for range attacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 26, 2023
1 parent ecdcd42 commit 751aced
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions RotationSolver.Default/Tank/PLD_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public class PLD_Default : PLD_Base
protected override IRotationConfigSet CreateConfiguration()
{
return base.CreateConfiguration()
.SetBool("UseDivineVeilPre", false, "DivineVeilPre in 15 seconds counting down.");
.SetBool("UseDivineVeilPre", false, "DivineVeilPre in 15 seconds counting down.")
.SetBool("UseHolyWhenAway", true, "Use HolyCircle or HolySpirit when far from enemies");
}

protected override IAction CountDownAction(float remainTime)
Expand Down Expand Up @@ -87,7 +88,11 @@ protected override bool GeneralGCD(out IAction act)
if (FastBlade.CanUse(out act)) return true;

//Range
if (HolySpirit.CanUse(out act)) return true;
if (Configs.GetBool("UseHolyWhenAway"))
{
if (HolyCircle.CanUse(out act)) return true;
if (HolySpirit.CanUse(out act)) return true;
}
if (ShieldLob.CanUse(out act)) return true;

return false;
Expand Down

0 comments on commit 751aced

Please sign in to comment.