Unify ad_halu

This commit is contained in:
Pasi Kallinen
2020-11-30 23:28:13 +02:00
parent 36bb52466d
commit ac5822fe69
3 changed files with 34 additions and 8 deletions

View File

@@ -1107,14 +1107,9 @@ int dieroll;
return mhm.hitflags;
break;
case AD_HALU:
if (!magr->mcan && haseyes(pd) && mdef->mcansee) {
if (g.vis && canseemon(mdef))
pline("%s looks %sconfused.", Monnam(mdef),
mdef->mconf ? "more " : "");
mdef->mconf = 1;
mdef->mstrategy &= ~STRAT_WAITFORU;
}
mhm.damage = 0;
mhitm_ad_halu(magr, mattk, mdef, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_CURS:
mhitm_ad_curs(magr, mattk, mdef, &mhm);