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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user