Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes failing to cast ability still triggering cooldown #15651

Merged

Conversation

TealSeer
Copy link
Contributor

@TealSeer TealSeer commented Sep 3, 2023

[BUG] [PLAYER ACTIONS]

About the PR

Fixes #15609, fixes #15514, fixes #13662 by making castcheck() failing return CAST_ATTEMPT_FAIL_NO_COOLDOWN instead of CAST_ATTEMPT_FAIL_DO_COOLDOWN

Why's this needed?

When abilities were being refactored some months ago the logic of cooldowns was changed such that the value that CAST_ATTEMPT_FAIL_DO_COOLDOWN was before (998) started triggering cooldowns when it previously did not.

Changelog

(u)TealSeer
(+)Using an ability while incapacitated or otherwise unable to will no longer trigger the cooldown anyways.

@keywordlabeler keywordlabeler bot added A-Player-Actions Relating to direct player actions, e.g. emotes, special attacks, abilities C-Bug A bug that impacts usage of a feature labels Sep 3, 2023
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 3, 2023
@flappybatpal flappybatpal merged commit a0798ae into goonstation:master Sep 5, 2023
25 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 5, 2023
@TealSeer TealSeer deleted the cooldown-incapacitated-bug branch September 5, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Player-Actions Relating to direct player actions, e.g. emotes, special attacks, abilities C-Bug A bug that impacts usage of a feature size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coffin escape broken when knocked out Coffin escape bugged Vampire coffin escape cooldowns on fail
2 participants