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

Commit

Permalink
fix: dot action's usage in Manual mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jan 23, 2023
1 parent ccbc9eb commit 8399d37
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions RotationSolver/Actions/BaseAction/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,14 @@ private bool TargetHostileManual(BattleChara b, bool mustUse, int aoeCount, out
{
target = b;

//No need to dot.
if (TargetStatus != null && !ObjectHelper.CanDot(b)) return false;
if (!mustUse)
{
//No need to dot.
if (TargetStatus != null && !ObjectHelper.CanDot(b)) return false;

//Already has status.
if (!mustUse && !CheckStatus(b)) return false;
//Already has status.
if (!CheckStatus(b)) return false;
}

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"Configwindow_Param_UseItemDesc": "Use poison, WIP",
"Configwindow_Param_Conditon": "Condition",
"Configwindow_Param_StartOnCountdown": "Turn on auto-rotation on countdown",
"Configwindow_Param_HealingOutOfCombat": "Heal party members outside of combat.",
"Configwindow_Param_HealOutOfCombat": "Heal party members outside of combat.",
"Configwindow_Param_HealthDifference": "Set the HP standard deviation threshold for using AOE heal (ability & spell)",
"Configwindow_Param_HealthAreaAbility": "Set the HP threshold for using AOE healing ability",
"Configwindow_Param_HealthAreaSpell": "Set the HP threshold for using AOE healing spell",
Expand Down
3 changes: 1 addition & 2 deletions RotationSolver/Rotations/Healer/WHM/WHM_Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ private protected override bool GeneralGCD(out IAction act)
if (Holy.CanUse(out act)) return true;

//单体输出
if (Aero.CanUse(out act, mustUse: IsMoving && HaveHostilesInRange)) return true;
if (Aero.CanUse(out act, mustUse: IsMoving)) return true;
if (Stone.CanUse(out act)) return true;


act = null;
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver/SigReplacers/IconReplacer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ group combo by combo.JobIDs[0] into comboGrp
.ToArray();

_customCombosDict = new SortedList<JobRole, CustomRotationGroup[]>
(_customRotations.GroupBy(g => g.rotations[0].Job.GetJobRole()).ToDictionary(set => set.Key, set => set.OrderBy(i => i.jobId).ToArray()));
(_customRotations.GroupBy(g => g.rotations[0].Job.GetJobRole())
.ToDictionary(set => set.Key, set => set.OrderBy(i => i.jobId).ToArray()));
}

private static ICustomRotation[] SetCombos(ICustomRotation[] combos)
Expand Down

0 comments on commit 8399d37

Please sign in to comment.