Unify ad_stun

This commit is contained in:
Pasi Kallinen
2020-12-01 11:05:14 +02:00
parent 12ee144936
commit 337e7da049
4 changed files with 51 additions and 17 deletions

View File

@@ -1239,11 +1239,9 @@ register struct attack *mattk;
return mhm.hitflags;
break;
case AD_STUN:
hitmsg(mtmp, mattk);
if (!mtmp->mcan && !rn2(4)) {
make_stunned((HStun & TIMEOUT) + (long) mhm.damage, TRUE);
mhm.damage /= 2;
}
mhitm_ad_stun(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_ACID:
mhitm_ad_acid(mtmp, mattk, &g.youmonst, &mhm);