You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be paired with [`Cooldowns::ready`],
to check if the action can be used before triggering its cooldown,
or this can be used on its own,
reading the returned [`Result`] to determine if the ability was used.
Based on the docs, I expect that if this function returns an error indicating an ability was not used, it should not also trigger the non-global cooldown.
I also take the docs to mean, I can skip calling ready and use the result here.
Because this can be called without first calling CooldownState::ready, it may trigger the ability cooldown but then fail on the global cooldown.
Expectation
CooldownState::trigger does not trigger cooldowns if an ability was not used.
Proposal
I believe CooldownState::trigger should call CooldownState::ready itself, prior to attempting to trigger the ability and global cooldowns.
Which feature is frustrating to use or confusing?
Based on the docs, I expect that if this function returns an error indicating an ability was not used, it should not also trigger the non-global cooldown.
I also take the docs to mean, I can skip calling
ready
and use the result here.Because this can be called without first calling
CooldownState::ready
, it may trigger the ability cooldown but then fail on the global cooldown.Expectation
CooldownState::trigger
does not trigger cooldowns if an ability was not used.Proposal
I believe
CooldownState::trigger
should callCooldownState::ready
itself, prior to attempting to trigger the ability and global cooldowns.I am willing to PR this if the above is agreeable 😄, I am also willing to take a stab at #36 and #51 if they are still applicable.
The text was updated successfully, but these errors were encountered: