Unify ad_stck

This commit is contained in:
Pasi Kallinen
2020-12-04 09:30:17 +02:00
parent b4ed25da46
commit bfb8931188
4 changed files with 46 additions and 8 deletions
+3 -4
View File
@@ -1234,10 +1234,9 @@ register struct attack *mattk;
}
break;
case AD_STCK:
hitmsg(mtmp, mattk);
if (uncancelled && !u.ustuck && !sticks(g.youmonst.data)) {
set_ustuck(mtmp);
}
mhitm_ad_stck(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_WRAP:
if ((!mtmp->mcan || u.ustuck == mtmp) && !sticks(g.youmonst.data)) {