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

Incorporate exertion penalty into counter cost check #45523

Merged
merged 1 commit into from
Nov 22, 2020

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Fixes #45064
The check to prevent counter-lock did not incorporate weariness, so when weary it does not prevent counter-lock.

Describe the solution

Factor in weariness penalty when determining if a counter would lead to counter-lock.

Describe alternatives you've considered

Ideally this would be inlined in attack_speed(), but I'm wary of side effects right now.

Testing

Make a character that can reliably trigger counters.
Get really weary.
Confirm that even while being attacked, the character can still act every turn. (might not be able to move on consecutive turns if weary cost makes movement really slow?)

@anothersimulacrum anothersimulacrum added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Melee Melee weapons, tactics, techniques, reach attack labels Nov 20, 2020
@ZhilkinSerg ZhilkinSerg merged commit e8a7cca into CleverRaven:master Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Melee Melee weapons, tactics, techniques, reach attack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Countering while weary seems to cause more delay before next action leading to stunlocking
3 participants