From 8bc8c04fbe230fb0f962f43da1acb3c51c4f88f0 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 23 Jun 2008 21:30:08 +0000 Subject: Fix monster emergency spells not checking for ENCH_TP, thus allowing monsters to cancel their teleportation without meaning to. (BR 2000428) Fix the quiver not being cleared when wielding the only quiverable (and thus previously quivered) item. (Un)wielding such an item now switches nicely between "Nothing wielded" and "Nothing quivered", as it should be. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6089 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 81c63c5c7b..55aea1c128 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -239,13 +239,13 @@ bool curse_an_item( bool decay_potions, bool quiet ) return (false); // Curse item. - if (decay_potions && !quiet) // just for mummies + if (decay_potions && !quiet) // Just for mummies. mpr("You feel nervous for a moment...", MSGCH_MONSTER_SPELL); if (you.inv[item].base_type == OBJ_POTIONS) { int amount; - // decay at least two of the stack + // Decay at least two of the stack. if (you.inv[item].quantity <= 2) amount = you.inv[item].quantity; else -- cgit v1.2.3-54-g00ecf