From 8392b67ef4de1321bc73b224647d400de1cb1ff4 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 26 Oct 2007 16:32:37 +0000 Subject: Added cset_unicode to options texts (V-Napkin), fixed staff of energy not working for transformations (syllogism). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2601 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 335aa9003e..58004d3087 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -671,6 +671,7 @@ bool cast_a_spell() return (false); } + const bool staff_energy = player_energy(); if (you.duration[DUR_CONF]) random_uselessness( 2 + random2(7), 0 ); else @@ -688,7 +689,7 @@ bool cast_a_spell() dec_mp( spell_mana(spell) ); - if (!player_energy() && you.is_undead != US_UNDEAD) + if (!staff_energy && you.is_undead != US_UNDEAD) { const int spellh = spell_hunger( spell ); if (spellh > 0) -- cgit v1.2.3-54-g00ecf