summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 05ce0011cf..c4c77e7025 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -1475,7 +1475,8 @@ static void _input()
// XXX: Is there some smart way to avoid autoswitching back if we're
// just about to continue butchering?
if (!you.turn_is_over && player_feels_safe
- && you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED])
+ && you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED]
+ && you_tran_can_wear(EQ_WEAPON))
{
// Decrease value by 1. (0 means attribute is false, 1 = a, 2 = b, ...)
int weap = you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] - 1;