fix github issue #293 - raven vs raven

The saying /corvus oculum corvi non eruit/ (Latin) means "a crow
doesn't pluck out the eye of another crow" (roughly).  Something
along the lines of "like-minded people stick together".  Honor the
literal meaning by preventing a raven's blinding attack that gets
directed at another raven from being able to cause blindness.

Fixes #293
This commit is contained in:
PatR
2020-02-15 13:55:51 -08:00
parent 998d8b1fd4
commit c21921668a
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 mondata.c $NHDT-Date: 1574648940 2019/11/25 02:29:00 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.76 $ */
/* NetHack 3.6 mondata.c $NHDT-Date: 1581803740 2020/02/15 21:55:40 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.77 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2011. */
/* NetHack may be freely redistributed. See license for details. */
@@ -199,6 +199,13 @@ struct obj *obj; /* aatyp == AT_WEAP, AT_SPIT */
if (!haseyes(mdef->data))
return FALSE;
/* /corvus oculum corvi non eruit/
a saying expressed in Latin rather than a zoological observation:
"a crow will not pluck out the eye of another crow"
so prevent ravens from blinding each other */
if (magr->data == &mons[PM_RAVEN] && mdef->data == &mons[PM_RAVEN])
return FALSE;
switch (aatyp) {
case AT_EXPL:
case AT_BOOM: