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

Commit

Permalink
fix: the usage of Benediction.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Feb 3, 2023
1 parent 9dd502a commit 786b2ca
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions RotationSolver/Rotations/Healer/WHM/WHM_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ private protected override bool HealSingleGCD(out IAction act)

private protected override bool HealSingleAbility(byte abilitiesRemaining, out IAction act)
{
//天赐 大资源救急用
if (Benediction.Target.GetHealthRatio() < 0.3
&& Benediction.CanUse(out act)) return true;
if (Benediction.CanUse(out act) &&
Benediction.Target.GetHealthRatio() < 0.3) return true;

//庇护所
if (!IsMoving && Asylum.CanUse(out act)) return true;
Expand Down Expand Up @@ -169,16 +168,10 @@ private protected override bool DefenceAreaAbility(byte abilitiesRemaining, out
//开局5s使用再生和盾给开了盾姿的t
private protected override IAction CountDownAction(float remainTime)
{
if (Configs.GetBool("UsePreRegen") && remainTime <= 5 && remainTime > 3 && DivineBenison.CanUse(out _))
if (Configs.GetBool("UsePreRegen") && remainTime <= 5 && remainTime > 3)
{
if (DivineBenison.CanUse(out _))
{
return DivineBenison;
}
if (Regen.CanUse(out _))
{
return Regen;
}
if (Regen.CanUse(out var act)) return act;
if (DivineBenison.CanUse(out act)) return act;
}
return base.CountDownAction(remainTime);
}
Expand Down

0 comments on commit 786b2ca

Please sign in to comment.