Fixing #1383 introduced a small bug:
Damage is already applied when checking for death... so monsters with more HPs than the damage value and less than double the damage value will be deleted, when they should not.
Code:
/* If the quake finished the monster off, show message */ if (m_ptr->hp < damage && m_ptr->hp >= 0) msg("%^s is embedded in the rock!", m_name); /* Apply damage directly */ m_ptr->hp -= damage; /* Delete (not kill) "dead" monsters */ if (m_ptr->hp < damage) { /* Delete the monster */ delete_monster(yy, xx); /* No longer safe */ sn = 0; }
Comment