From b8064205c92a0fad3ca4332986393e1a3f9d4222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Sun, 14 May 2023 23:24:53 +0800 Subject: [PATCH] fix: make defense command must use. --- RotationSolver.Basic/Rotations/CustomRotation_Ability.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs b/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs index ad4db66b9..5892a05c3 100644 --- a/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs +++ b/RotationSolver.Basic/Rotations/CustomRotation_Ability.cs @@ -133,6 +133,7 @@ private bool GeneralHealAbility(SpecialCommandType specialType, out IAction act) { act = null; + BaseAction.OtherOption |= CanUseOption.MustUse; switch (specialType) { case SpecialCommandType.DefenseArea: @@ -143,6 +144,7 @@ private bool GeneralHealAbility(SpecialCommandType specialType, out IAction act) if (DefenseSingleAbility(out act)) return true; break; } + BaseAction.OtherOption &= ~CanUseOption.MustUse; if ((DataCenter.HPNotFull || Job.GetJobRole() != JobRole.Healer) && InCombat) {