cancelled yellow lights

Someone reported this one to us.
This commit is contained in:
arromdee
2002-11-04 06:55:55 +00:00
parent fded4ca778
commit f7075b2cd2
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -290,6 +290,8 @@ handle polearm wielded prior to mounting the same as one wielded while mounted,
and one still used after dismounting like one wielded while not mounted and one still used after dismounting like one wielded while not mounted
non-lawful angels don't chat using lawful messages and shouldn't summon non-lawful angels don't chat using lawful messages and shouldn't summon
lawful help lawful help
cancelled yellow lights should not explode against other monsters, as well as
not exploding against you
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+8 -1
View File
@@ -306,8 +306,12 @@ mattackm(magr, mdef)
break; break;
case AT_EXPL: case AT_EXPL:
strike = 1; /* automatic hit */
res[i] = explmm(magr, mdef, mattk); res[i] = explmm(magr, mdef, mattk);
if (res[i] == MM_MISS) { /* cancelled--no attack */
strike = 0;
attk = 0;
} else
strike = 1; /* automatic hit */
break; break;
case AT_ENGL: case AT_ENGL:
@@ -537,6 +541,9 @@ explmm(magr, mdef, mattk)
{ {
int result; int result;
if (magr->mcan)
return MM_MISS;
if(cansee(magr->mx, magr->my)) if(cansee(magr->mx, magr->my))
pline("%s explodes!", Monnam(magr)); pline("%s explodes!", Monnam(magr));
else noises(magr, mattk); else noises(magr, mattk);