]> granicus.if.org Git - nethack/commit
fix #H4428 - mon vs mon thrown cockatrice egg
authorPatR <rankin@nethack.org>
Sat, 9 Jul 2016 23:15:37 +0000 (16:15 -0700)
committerPatR <rankin@nethack.org>
Sat, 9 Jul 2016 23:15:37 +0000 (16:15 -0700)
commit47572a7946c2df3c55d2b0f060c6c9175e4e33f7
treefbf4e8e30a8e18e252b023884af03c6864e9b680
parent617ab5968fd887c15a434f6c8ac5c2be1ef526c5
fix #H4428 - mon vs mon thrown cockatrice egg

There was no code in ohitmon() (for object thrown or launched at a
monster by someone or something other than the hero) to handle an egg
hitting a monster.  Cockatrice egg is monsters' preferred missile,
but if one hit a monster instead of hero it just did minimal damage
without any chance of the side-effect that makes it be preferred.
doc/fixes36.1
src/mthrowu.c