Skip to content

Cooldown tracking on abilities whose ids are changed by level modifiers does not work #720

@jtcasper

Description

@jtcasper

Describe the bug
If an ability has its id changed by level modifiers then the utility functions of the cdtracker like cdTracker.canUse(ability) will not report cooldown status correctly, as ability will be the "base" ability, and use will be updating the cdTracker's state with the result of cdTracker.canUse(applyLevelModifiers(ability)).

To Reproduce
Remove the workaround sharesCooldownWith block in #719 and notice that sage sim bugs out. Additional logging can be added to see that Phlegma III is always "ready".

Expected behavior
cdTracker is level modifier aware.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions