wielded ball and chain

- a wielded/quivered ball would still be marked as wielded/quivered
after you threw it
This commit is contained in:
cohrs
2002-03-29 20:35:22 +00:00
parent afc7bc95c6
commit a997e11e00
2 changed files with 6 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ characters polymorphed into centaurs can't wear boots
if an unknown rolling boulder trap kills a monster, you shouldn't be a murderer
touchstone entry in data.base
specific message for engraving headstone with wand of digging
wielded/quivered chained ball should be unwielded when thrown
Platform- and/or Interface-Specific Fixes

View File

@@ -169,6 +169,11 @@ int shotlimit;
otmp = obj;
if (otmp->owornmask && otmp != uball)
remove_worn_item(otmp);
else if ((obj->owornmask & (W_WEP|W_SWAPWEP|W_QUIVER)) != 0) {
/* wielded ball, special case */
setworn((struct obj *)0,
(obj->owornmask & (W_WEP|W_SWAPWEP|W_QUIVER)));
}
}
freeinv(otmp);
throwit(otmp, wep_mask, twoweap);