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:
@@ -3765,6 +3765,8 @@ const char *fltxt;
|
|||||||
if (otmp->owornmask) {
|
if (otmp->owornmask) {
|
||||||
/* in case monster's life gets saved */
|
/* in case monster's life gets saved */
|
||||||
mon->misc_worn_check &= ~otmp->owornmask;
|
mon->misc_worn_check &= ~otmp->owornmask;
|
||||||
|
if (otmp->owornmask & W_WEP)
|
||||||
|
setmnotwielded(mon, otmp);
|
||||||
/* also dismounts hero if this object is steed's saddle */
|
/* also dismounts hero if this object is steed's saddle */
|
||||||
update_mon_intrinsics(mon, otmp, FALSE, TRUE);
|
update_mon_intrinsics(mon, otmp, FALSE, TRUE);
|
||||||
otmp->owornmask = 0L;
|
otmp->owornmask = 0L;
|
||||||
|
|||||||
Reference in New Issue
Block a user