Skip to content

Commit

Permalink
Core: KeyAction: Prefer OnCooldown over GetRemainingCooldown 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Jan 5, 2025
1 parent 9466911 commit 08a0112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Requirement/RequirementFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ private static void AddKeyActionCooldown(List<Requirement> list, KeyAction item)
if (item.Cooldown <= 0)
return;

bool f() => item.GetRemainingCooldown() == 0;
bool f() => !item.OnCooldown();
string s() => $"Cooldown {item.GetRemainingCooldown() / 1000:F1}";
list.Add(new Requirement
{
Expand Down

0 comments on commit 08a0112

Please sign in to comment.