Fix an exploit involving bags and potions of water
authorAlex Smith <ais523@nethack4.org>
Sat, 6 Jan 2018 00:31:11 +0000 (00:31 +0000)
committerAlex Smith <ais523@nethack4.org>
Sat, 6 Jan 2018 00:38:37 +0000 (00:38 +0000)
commitbad36c8672e8132fbdf98bec1109b2b049c62690
treeccd9f0ddc377f09494cce55f6a88fb3f8451133f
parent2b7b2af9eb1f5dcefa601e6813fe5fd308b1067b
Fix an exploit involving bags and potions of water

Discovered while writing the previous commit. If you dipped a sack
full of potions into an uncursed potion of water, the potions would
dilute but you wouldn't lose the original potion, letting you repeat
until all were diluted.

Allowing people to do this trick to blank multiple potions from one
potion of water seems like it's not an abuse, given that it can be
done in a more tedious way with water walking or the like and it
costs resources, but it's definitely abusive to make it possible
entirely for free.
src/trap.c