Unify ad_slee

This commit is contained in:
Pasi Kallinen
2020-11-30 22:32:50 +02:00
parent 654220f840
commit eb5508ba58
4 changed files with 63 additions and 24 deletions

View File

@@ -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);