]> granicus.if.org Git - nethack/commit
fix #2495 - light vs gremlins (trunk only)
authornethack.rankin <nethack.rankin>
Mon, 17 Oct 2011 01:32:23 +0000 (01:32 +0000)
committernethack.rankin <nethack.rankin>
Mon, 17 Oct 2011 01:32:23 +0000 (01:32 +0000)
commit897d527837b78792bdf0d7a94983f6edc16c1f68
tree1828e4a0839d9d847d1d02cd1e52d5ed8394c19c
parent2402f43776a8efe0c4d86036bb1c2d859c1fd74e
fix #2495 - light vs gremlins (trunk only)

     From a bug report, flashing yourself
with a camera while in gremlin form blinded as with any other form, but
didn't inflict any damage the way that flashing a monster gremlin does.
This fixes that, and also makes light from wand/scroll/spell that hits
you-as-gremlin or monster gremlins do 1d5 damage too.  It happens even
if the target is already in a lit spot, but doesn't continue afterwards:
simply being in a lit spot doesn't cause any damage, nor does lamp light.
doc/fixes35.0
include/extern.h
src/read.c
src/uhitm.c
src/zap.c