throwing while polymorphed

<Someone> suggested that a dragon, lacking hands, shouldn't be able to
throw things.  Dragons can pick things up, and it seems they can throw
things the same way.  However, it does seem that a notake() monster, which
cannot pick things up, shouldn't be able to throw things either.
This commit is contained in:
cohrs
2003-10-11 18:38:24 +00:00
parent 8ee1ecd2ea
commit 79961e0d85
2 changed files with 11 additions and 0 deletions

View File

@@ -203,6 +203,11 @@ dothrow()
shotlimit = (multi || save_cm) ? multi + 1 : 0;
multi = 0; /* reset; it's been used up */
if (notake(youmonst.data)) {
You("are physically incapable of throwing anything.");
return 0;
}
if(check_capacity((char *)0)) return(0);
obj = getobj(uslinging() ? bullets : toss_objs, "throw");
/* it is also possible to throw food */
@@ -285,6 +290,11 @@ dofire()
{
int shotlimit;
if (notake(youmonst.data)) {
You("are physically incapable of doing that.");
return 0;
}
if(check_capacity((char *)0)) return(0);
if (!uquiver) {
if (!flags.autoquiver) {