Fix mon weapon inconsistency when monster got disintegrated

This happened when the monster, who was wielding a weapon, got hit
by a disintegration blast, and then lifesaved by a worn amulet.
This commit is contained in:
Pasi Kallinen
2015-10-24 09:19:35 +03:00
parent c574b566be
commit 3fd92e3ef8

View File

@@ -3765,6 +3765,8 @@ const char *fltxt;
if (otmp->owornmask) {
/* in case monster's life gets saved */
mon->misc_worn_check &= ~otmp->owornmask;
if (otmp->owornmask & W_WEP)
setmnotwielded(mon, otmp);
/* also dismounts hero if this object is steed's saddle */
update_mon_intrinsics(mon, otmp, FALSE, TRUE);
otmp->owornmask = 0L;