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:
@@ -105,6 +105,8 @@ clear worn bits of any object grabbed by shopkeeper to avoid extract_nobj panic
|
||||
looting any container on a location should suppress looting nearby monsters
|
||||
give more specific message when forbidden role attempts to use twoweapon mode
|
||||
avoid double billing if #loot causes a shop's bag of holding to explode
|
||||
when polymorphed, player killing a paper or straw golem via fire damage
|
||||
would kill the golem twice, resulting in an impossible error
|
||||
|
||||
|
||||
Platform- and/or Interface-Specific Fixes
|
||||
|
||||
@@ -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