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 poly/cluwne seeming castable whilst stunned #8772

Merged
merged 2 commits into from May 30, 2022

Conversation

MetricDuck
Copy link
Contributor

@MetricDuck MetricDuck commented May 27, 2022

[BUG]

About the PR

Following #6380 polymorph & cluwneing around were given action bars.

The action bars are interruptible by stuns, so whilst you can start the action bar while stunned it will nearly always fail at around 70% completion and put the spell on cooldown.

This PR adds an check+early return to cast(), preventing these spells from being channelled if the user can't act.

Why's this needed?

The spell should either be successfully castable whilst stunned, or outright uncastable whilst stunned (ie: like in a sanctuary, or with the teleport scroll). Suggesting to the wizard player it is castable with an action bar, then having it inevitably fail at around 70%, isn't good feedback to the player.

@keywordlabeler keywordlabeler bot added the C-Bug A bug that impacts usage of a feature label May 27, 2022
@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 27, 2022
@MetricDuck
Copy link
Contributor Author

Note: the victim can still walk away. Also option of adding an INTERRUPT_ATTACKED flag

Copy link
Member

@ZeWaka ZeWaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would this be castable while stunned intentionally lol

@MetricDuck MetricDuck changed the title Fixes poly/cluwne being uncastable whilst stunned Fixes poly/cluwne seeming castable whilst stunned May 27, 2022
@MetricDuck
Copy link
Contributor Author

why would this be castable while stunned intentionally lol

i saw a coinflip and picked the easiest one to implement lol

The INTERRUPT_STUNNED flag has been restored, and an early return has been added for can_act to the cast() procs.

@flrsh
Copy link
Contributor

flrsh commented May 30, 2022

Whilst is a cool word.

@flrsh flrsh merged commit b5bb37f into goonstation:master May 30, 2022
@MetricDuck MetricDuck deleted the bugfix-polystuncast branch May 31, 2022 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

3 participants