R868 - don't kill paper/straw golems twice

longtime bug in damageum, if hero is poly'd to something with fire damage,
and hits a paper or straw golem, mondead will get called twice for the
monster.  Fix this, by working like AD_CURS does no clay golem.  Also, make
sure no scrolls, et al, get dropped by disallowing a corpse.
This commit is contained in:
cohrs
2002-05-16 03:13:34 +00:00
parent 4c07c88dac
commit 25e5208deb
2 changed files with 6 additions and 1 deletions

View File

@@ -1188,7 +1188,10 @@ register struct attack *mattk;
pd == &mons[PM_PAPER_GOLEM]) {
if (!Blind)
pline("%s burns completely!", Monnam(mdef));
xkilled(mdef,0);
xkilled(mdef,2);
tmp = 0;
break;
/* Don't return yet; keep hp<1 and tmp=0 for pet msg */
}
tmp += destroy_mitem(mdef, SCROLL_CLASS, AD_FIRE);
tmp += destroy_mitem(mdef, SPBOOK_CLASS, AD_FIRE);