Skip to content

Commit

Permalink
Fix racial check for keg quaffing, should allow safe chugging for bot…
Browse files Browse the repository at this point in the history
…h dwarves and giants.
  • Loading branch information
elunna committed Oct 31, 2023
1 parent 74c3562 commit 6052e38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,8 +795,9 @@ dodrink()
quan++;
}
You("down the entire keg! You are incredibly drunk!");
if (quan > 5 && !maybe_polyd(is_dwarf(youmonst.data) || is_giant(youmonst.data),
Race_if(PM_DWARF))) {
if (quan > 5
&& !maybe_polyd(is_dwarf(youmonst.data), Race_if(PM_DWARF))
&& !maybe_polyd(is_giant(youmonst.data), Race_if(PM_GIANT))) {
u.uhp = 0;
losehp(1, "drinking too much booze", KILLED_BY);
}
Expand Down

0 comments on commit 6052e38

Please sign in to comment.