Unify ad_plys

This commit is contained in:
Pasi Kallinen
2020-12-04 09:30:17 +02:00
parent 7914237fbf
commit 654220f840
4 changed files with 77 additions and 27 deletions
+3 -7
View File
@@ -1092,13 +1092,9 @@ int dieroll;
}
break;
case AD_PLYS:
if (!cancelled && mdef->mcanmove) {
if (g.vis && canspotmon(mdef)) {
Strcpy(buf, Monnam(mdef));
pline("%s is frozen by %s.", buf, mon_nam(magr));
}
paralyze_monst(mdef, rnd(10));
}
mhitm_ad_plys(magr, mattk, mdef, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_SLOW:
if (!cancelled && mdef->mspeed != MSLOW) {