Unify ad_dren

This commit is contained in:
Pasi Kallinen
2020-12-04 09:30:14 +02:00
parent 6436ea1532
commit 518798d0d2
4 changed files with 54 additions and 11 deletions
+3 -4
View File
@@ -1611,10 +1611,9 @@ register struct attack *mattk;
u_slow_down();
break;
case AD_DREN:
hitmsg(mtmp, mattk);
if (uncancelled && !rn2(4)) /* 25% chance */
drain_en(mhm.damage);
mhm.damage = 0;
mhitm_ad_dren(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_CONF:
hitmsg(mtmp, mattk);