fix pull request #468 - scroll of earth panic
If a monster read a scroll of earth and got killed in the process, there would be an "dealloc_obj: obj not free" panic when trying to use up the scroll. It was dropped to the ground with any other possessions and no longer in the monster's inventory at the time m_useup() was called. Use up the scroll before performing its effects. The patch does something similar for potion of polymorph, but if newcham() can kill the monster then there are other problems besides trying to use up the potion. I kept that in anyway. Fixes #468
This commit is contained in:
@@ -412,7 +412,7 @@ remove superfluous "All" from "All foos are already nonexistent." when blessed
|
||||
You mime dip <item> intoing something.
|
||||
mounted hero falling out of saddle shouldn't hit ground and take damage when
|
||||
levitating or flying (if done without steed's help)
|
||||
|
||||
avoid "obj not free" panic if monster kills itself by reading scroll of earth
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user