From e52811f9c089b748627cd582419a29e67aa1a22a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 4 Mar 2008 10:08:23 +0000 Subject: Fix 1902654: Wandering monsters hitting you without noticing you. They will now notice if they bump into you. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3520 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 7330c76b29..5fa3c53deb 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4041,9 +4041,10 @@ static bool scroll_modify_item(const scroll_type scroll) case SCR_RECHARGING: if (item_is_rechargable(item)) { - mpr("This is a scroll of recharging!"); - recharge_wand(item_slot); - return (true); + // might still fail on highly enchanted weapons of electrocution + if (recharge_wand(item_slot)) + return (true); + return (false); } case SCR_ENCHANT_ARMOUR: if (is_enchantable_armour(item, true)) -- cgit v1.2.3-54-g00ecf