Skip to content

Commit

Permalink
Fix: fire bolt vs straw/paper golems.
Browse files Browse the repository at this point in the history
There was an extra xkill where the fire bolt hit monsters that would burn up completely, causing a m_detach error.
  • Loading branch information
elunna committed Dec 6, 2024
1 parent f158942 commit b7641eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zap.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ bhitm(struct monst *mtmp, struct obj *otmp)
(mtmp->data == &mons[PM_PAPER_GOLEM]) ? " paper"
: (mtmp->data == &mons[PM_STRAW_GOLEM]) ? " straw" : "");
xkilled(mtmp, XKILL_NOMSG | XKILL_NOCORPSE);
if (DEADMONSTER(mtmp))
killed(mtmp);
dmg = 0;
} else if (!resist(mtmp, otmp->oclass, dmg, NOTELL)
&& !DEADMONSTER(mtmp)) {
dmg = d(1, 10); /* Level 1 = 1d10 fire damage */
Expand Down

0 comments on commit b7641eb

Please sign in to comment.