Unify ad_poly

This commit is contained in:
Pasi Kallinen
2020-11-30 22:59:06 +02:00
parent fda63d145b
commit 618feabd88
4 changed files with 44 additions and 6 deletions

View File

@@ -1480,8 +1480,9 @@ register struct attack *mattk;
return mhm.hitflags;
break;
case AD_POLY:
if (uncancelled && Maybe_Half_Phys(mhm.damage) < (Upolyd ? u.mh : u.uhp))
mhm.damage = mon_poly(mtmp, &g.youmonst, mhm.damage);
mhitm_ad_poly(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
default:
mhm.damage = 0;