Unify ad_slow

This commit is contained in:
Pasi Kallinen
2020-11-30 22:50:56 +02:00
parent b80c30bcf1
commit 558ec78b3a
4 changed files with 57 additions and 18 deletions

View File

@@ -1091,14 +1091,9 @@ int dieroll;
return mhm.hitflags;
break;
case AD_SLOW:
if (!cancelled && mdef->mspeed != MSLOW) {
unsigned int oldspeed = mdef->mspeed;
mon_adjust_speed(mdef, -1, (struct obj *) 0);
mdef->mstrategy &= ~STRAT_WAITFORU;
if (mdef->mspeed != oldspeed && g.vis && canspotmon(mdef))
pline("%s slows down.", Monnam(mdef));
}
mhitm_ad_slow(magr, mattk, mdef, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_CONF:
/* Since confusing another monster doesn't have a real time