]> granicus.if.org Git - nethack/commit
is_lminion should only match lawful minions
authorcohrs <cohrs>
Thu, 24 Oct 2002 04:13:56 +0000 (04:13 +0000)
committercohrs <cohrs>
Thu, 24 Oct 2002 04:13:56 +0000 (04:13 +0000)
commitff8512b36bf60b328fa05a3cdd55e0b48f368e00
treeb67ad25a1b61f2fcee2260f225be5a15d1d38a04
parent71480033c6dcb7277e6eb75cb103577f597e211c
is_lminion should only match lawful minions
When Angels were introduced, they were always lawful.  Somewhere along the
line, non-lawful angels were added, but is_lminion and uses of it was never
updated to address this change.  Among other things, this resulted in
non-lawful angels delivering messages via #chat that are only appropriate
for lawful angels.  That is addressed simply by changing the definition of
is_lminion, which must take a struct monst, not a permonst, to return valid
results.  Also, non-lawful angels should summon appropriate monsters, not
lawful minions.
doc/fixes34.1
include/extern.h
include/mondata.h
src/makemon.c
src/mhitu.c
src/minion.c
src/monmove.c
src/wizard.c