Unify ad_slee
This commit is contained in:
13
src/mhitu.c
13
src/mhitu.c
@@ -1112,16 +1112,9 @@ register struct attack *mattk;
|
||||
return mhm.hitflags;
|
||||
break;
|
||||
case AD_SLEE:
|
||||
hitmsg(mtmp, mattk);
|
||||
if (uncancelled && g.multi >= 0 && !rn2(5)) {
|
||||
if (Sleep_resistance)
|
||||
break;
|
||||
fall_asleep(-rnd(10), TRUE);
|
||||
if (Blind)
|
||||
You("are put to sleep!");
|
||||
else
|
||||
You("are put to sleep by %s!", mon_nam(mtmp));
|
||||
}
|
||||
mhitm_ad_slee(mtmp, mattk, &g.youmonst, &mhm);
|
||||
if (mhm.done)
|
||||
return mhm.hitflags;
|
||||
break;
|
||||
case AD_BLND:
|
||||
mhitm_ad_blnd(mtmp, mattk, &g.youmonst, &mhm);
|
||||
|
||||
Reference in New Issue
Block a user