Sunsword kept glowing after monster wielding it died

- <Someone> reported this bug to the mailing list
- add a check in relobj(), which should catch all the cases
This commit is contained in:
cohrs
2002-03-27 04:58:42 +00:00
parent 6cdf92851e
commit 8a3c5a621f
2 changed files with 3 additions and 0 deletions

View 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

View 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)