Skip to content

fix: replace no-op set_wait(0) with zero_wait() (#2618)#3005

Merged
bylins merged 1 commit intomasterfrom
issue.2618
Mar 21, 2026
Merged

fix: replace no-op set_wait(0) with zero_wait() (#2618)#3005
bylins merged 1 commit intomasterfrom
issue.2618

Conversation

@bylins
Copy link
Owner

@bylins bylins commented Mar 21, 2026

set_wait(0) was silently ignored (guard: if (_ > 0)). These calls intended to clear wait state but did nothing. Replace with zero_wait() which properly resets m_wait to 0.

  • fight_stuff.cpp: clear attacker wait when target dies
  • bash.cpp: no lag on bash case 0
  • slay.cpp: no lag on slay case 0
  • firstaid.cpp: clear victim wait on successful first aid (was a bug: first aid never actually cleared the victim's lag)

set_wait(0) was silently ignored (guard: if (_ > 0)). These calls
intended to clear wait state but did nothing. Replace with
zero_wait() which properly resets m_wait to 0.

- fight_stuff.cpp: clear attacker wait when target dies
- bash.cpp: no lag on bash case 0
- slay.cpp: no lag on slay case 0
- firstaid.cpp: clear victim wait on successful first aid (was a bug:
  first aid never actually cleared the victim's lag)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bylins bylins merged commit 1bedecb into master Mar 21, 2026
20 checks passed
@bylins bylins deleted the issue.2618 branch March 21, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant