]> granicus.if.org Git - nethack/commitdiff
Sunsword kept glowing after monster wielding it died
authorcohrs <cohrs>
Wed, 27 Mar 2002 04:58:42 +0000 (04:58 +0000)
committercohrs <cohrs>
Wed, 27 Mar 2002 04:58:42 +0000 (04:58 +0000)
- <Someone> reported this bug to the mailing list
- add a check in relobj(), which should catch all the cases

doc/fixes34.1
src/steal.c

index 17c752ace1d27ab41c8c47d088500d44918c7318..e1df29416a66289f4b87d15d00a9ef3051ae1b50 100644 (file)
@@ -22,6 +22,7 @@ discovering a mimic on a closed door location should not unblock the location
 don't drop corpse when a monster kills another monster on an inaccessible
        location (i.e. behave like xkilled behaves)
 half-physical-damage from gas spore explosion should only affect you
+Sunsword didn't stop glowing when hero killed a monster wielding it
 
 
 Platform- and/or Interface-Specific Fixes
index c020b2e351b53b04e557df0fd6c4f8814f23101f..dcff3a41c459ebca646e820ab38c46b446a11bc9 100644 (file)
@@ -543,6 +543,8 @@ boolean is_pet;             /* If true, pet should keep wielded/worn items */
                            costly_spot(mtmp->mx, mtmp->my))
                                otmp->no_charge = 1;
 #endif
+                       if (otmp->owornmask & W_WEP)
+                           setmnotwielded(mtmp, otmp);
                        otmp->owornmask = 0L;
                }
                if (is_pet && cansee(omx, omy) && flags.verbose)