Unify ad_samu

This commit is contained in:
Pasi Kallinen
2020-12-01 11:28:41 +02:00
parent d679d3a029
commit 4118a7ea44
3 changed files with 31 additions and 7 deletions

View File

@@ -1165,14 +1165,10 @@ register struct attack *mattk;
break;
case AD_SAMU:
hitmsg(mtmp, mattk);
/* when the Wizard or quest nemesis hits, there's a 1/20 chance
to steal a quest artifact (any, not just the one for the hero's
own role) or the Amulet or one of the invocation tools */
if (!rn2(20))
stealamulet(mtmp);
mhitm_ad_samu(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)
return mhm.hitflags;
break;
case AD_TLPT:
mhitm_ad_tlpt(mtmp, mattk, &g.youmonst, &mhm);
if (mhm.done)