From 79961e0d8506394670e64b233ff7e4595fa16780 Mon Sep 17 00:00:00 2001 From: cohrs Date: Sat, 11 Oct 2003 18:38:24 +0000 Subject: [PATCH] throwing while polymorphed 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. --- doc/fixes34.3 | 1 + src/dothrow.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/fixes34.3 b/doc/fixes34.3 index cc5171602..af4b54a28 100644 --- a/doc/fixes34.3 +++ b/doc/fixes34.3 @@ -45,6 +45,7 @@ always have warriors on the Valkyrie quest be female be more consistent with sounds when dropping into water surface() returns "bottom" when Underwater bill for all discarded, opened tins +monsters that cannot pick things up cannot throw things either Platform- and/or Interface-Specific Fixes diff --git a/src/dothrow.c b/src/dothrow.c index 9c47f18a6..f34526b1c 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -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) { -- 2.40.0