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

Commit

Permalink
fix: fixed the cooldown showcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 2, 2023
1 parent e7a631c commit 18f2f34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions RotationSolver/UI/CooldownWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ private static void DrawActionCooldown(IAction act)
var width = Service.Config.ControlWindow0GCDSize;
var recast = act.RecastTimeOneCharge;
var elapsed = act.RecastTimeElapsed;
var shouldSkip = recast < 3 && act is IBaseAction a && !a.IsRealGCD;

ImGui.BeginGroup();
var pos = ImGui.GetCursorPos();
Expand All @@ -61,7 +62,7 @@ private static void DrawActionCooldown(IAction act)
var r = -1f;
if (Service.Config.UseOriginalCooldown)
{
r = !act.EnoughLevel ? 0: recast == 0 || !act.IsCoolingDown ? 1 : elapsed / recast;
r = !act.EnoughLevel ? 0: recast == 0 || !act.IsCoolingDown || shouldSkip ? 1 : elapsed / recast;
}
ControlWindow.DrawIAction(act, width, r);
var size = ImGui.GetItemRectSize();
Expand All @@ -75,7 +76,7 @@ private static void DrawActionCooldown(IAction act)
new Vector2(pos.X + size.X, pos.Y + size.Y) + winPos, progressCol);
}
}
else if (act.IsCoolingDown)
else if (act.IsCoolingDown && !shouldSkip)
{
if (!Service.Config.UseOriginalCooldown)
{
Expand Down

0 comments on commit 18f2f34

Please sign in to comment.