xNetHack icon indicating copy to clipboard operation
xNetHack copied to clipboard

Vapors from dropped potion of monster detection can cause panic while levitating.

Open elunna opened this issue 2 years ago • 0 comments

Easy to reproduce.

  1. Levitate
  2. Make sure all monsters on level are gone
  3. Drop a potion of monster detection

The potion will be used up from breaking and then again by the strange feeling handling. I noticed this was previously fixed for thrown and kicked potions but not potions dropped while levitating. It looks like gt.thrownobj is never set in drop() and it just uses the hitfloor() function to handle how things break and such. Could we maybe set gt.thrownobj before hitfloor is called?

elunna avatar Dec 28 '23 06:12 elunna