From 147f57b8232067ebbd0dd5facf7df58ee3f05ce9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 27 Feb 2009 13:38:06 +0000 Subject: * Mention the spell's name in the forget_spell() miscast effect. * Remove a dangling if-statement in monster_die KILL_RESET check. (It really didn't look like it had any purpose, but if I was wrong please correct me.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9257 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 247e35190c..b31ccacc2f 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -569,10 +569,12 @@ bool forget_spell(void) if (slot == -1) // should never happen though return (false); - del_spell_from_memory_by_slot( slot ); + mprf("Your knowledge of %s becomes hazy all of a sudden, and you forget " + "the spell!", spell_title(you.spells[slot])); + del_spell_from_memory_by_slot( slot ); return (true); -} // end forget_spell() +} // use player::decrease_stats() instead iff: // (a) player_sust_abil() should not factor in; and -- cgit v1.2.3-54-g00ecf