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

Commit

Permalink
fix: fixed cooldown time check bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 31, 2023
1 parent b381539 commit 30511f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RotationSolver.Basic/Helpers/StatusHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public static class StatusHelper
public static bool WillStatusEndGCD(this BattleChara obj, uint gcdCount = 0, uint abilityCount = 0, bool isFromSelf = true, params StatusID[] statusIDs)
{
var remain = obj.StatusTime(isFromSelf, statusIDs);
//as infinite
if (remain < 0 && obj.HasStatus(isFromSelf, statusIDs)) return false;
return CooldownHelper.RecastAfterGCD(remain, gcdCount, abilityCount);
}

Expand Down

0 comments on commit 30511f7

Please sign in to comment.