From a28741dd2b29142210f64325cb2cb87c806d3409 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 20 Jul 2009 21:18:13 +0000 Subject: Fix 2822832: temporary brands not being removed when thrown with LRET_FUMBLED plus: thrown weapon permabrand being removed when DUR_WEAPON_BRAND is active plus: double messaging of "You are now empty-handed." Fix 2810517: Added a pre-ability requirements check that handles Lugonu's enter/exit abyss, berserking, recite, breath attacks and some more. If the requirements aren't met, the check fails before the success check, thus no turn is wasted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10360 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 0a960b525f..6f238654ad 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -93,8 +93,9 @@ bool cast_selective_amnesia(bool force) return (false); } - if (!force && - random2(you.skills[SK_SPELLCASTING]) < random2(spell_difficulty(spell))) + if (!force + && random2(you.skills[SK_SPELLCASTING]) + < random2(spell_difficulty(spell))) { mpr("Oops! This spell sure is a blunt instrument."); forget_map(20 + random2(50)); -- cgit v1.2.3-54-g00ecf