C342-46: cleric cast lightning

Get rid of an old known buglist entry C342-46
> Cleric cast lightning doesn't blind as other lightning does
This commit is contained in:
nethack.allison
2004-06-05 05:22:40 +00:00
parent 98103b2c05
commit 7de00a45be
4 changed files with 19 additions and 16 deletions

View File

@@ -1920,11 +1920,7 @@ boolean ordinary;
}
destroy_item(WAND_CLASS, AD_ELEC);
destroy_item(RING_CLASS, AD_ELEC);
if (!resists_blnd(&youmonst)) {
You(are_blinded_by_the_flash);
make_blinded((long)rnd(100),FALSE);
if (!Blind) Your(vision_clears);
}
(void) flashburn((long)rnd(100));
break;
case SPE_FIREBALL:
@@ -2099,12 +2095,7 @@ boolean ordinary;
case EXPENSIVE_CAMERA:
#endif
damage += rnd(25);
if (!resists_blnd(&youmonst)) {
You(are_blinded_by_the_flash);
make_blinded((long)damage, FALSE);
makeknown(obj->otyp);
if (!Blind) Your(vision_clears);
}
if (flashburn((long)damage)) makeknown(obj->otyp);
damage = 0; /* reset */
break;
case WAN_OPENING:
@@ -2161,6 +2152,19 @@ boolean ordinary;
return(damage);
}
boolean
flashburn(duration)
long duration;
{
if (!resists_blnd(&youmonst)) {
You(are_blinded_by_the_flash);
make_blinded(duration, FALSE);
if (!Blind) Your(vision_clears);
return TRUE;
}
return FALSE;
}
#ifdef STEED
/* you've zapped a wand downwards while riding
* Return TRUE if the steed was hit by the wand.
@@ -3459,11 +3463,7 @@ register int dx,dy;
} else {
pline("%s whizzes by you!", The(fltxt));
}
if (abstype == ZT_LIGHTNING && !resists_blnd(&youmonst)) {
You(are_blinded_by_the_flash);
make_blinded((long)d(nd,50),FALSE);
if (!Blind) Your(vision_clears);
}
if (abstype == ZT_LIGHTNING) (void) flashburn((long)d(nd,50));
stop_occupation();
nomul(0);
}