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
@@ -1364,10 +1364,9 @@ int dieroll;
mhm.damage = 0;
break;
case AD_DREN:
if (!cancelled && !rn2(4))
xdrainenergym(mdef, (boolean) (g.vis && canspotmon(mdef)
&& mattk->aatyp != AT_ENGL));
mhm.damage = 0;
mhitm_ad_dren(magr, mattk, mdef, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_DRST:
case AD_DRDX: