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

@@ -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);