diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-04 10:08:23 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-04 10:08:23 +0000 |
commit | e52811f9c089b748627cd582419a29e67aa1a22a (patch) | |
tree | 6fc34b6e1327c43a3460fd30d7e49349b6eaaa56 /crawl-ref/source/item_use.cc | |
parent | a6e153fdce02d271899d8b71ecd82fffcbf0fbc2 (diff) | |
download | crawl-ref-e52811f9c089b748627cd582419a29e67aa1a22a.tar.gz crawl-ref-e52811f9c089b748627cd582419a29e67aa1a22a.zip |
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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)) |