summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 04:10:07 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 04:10:07 +0000
commitad4c63dc3204adfb26e5596761389cbb639836e6 (patch)
tree3321af14de7ca8053e8fe8350fd3c6f0eccccac8 /crawl-ref/source/spl-cast.cc
parent2b38959cd0739d9f1e81c46547cd989c2273865b (diff)
downloadcrawl-ref-ad4c63dc3204adfb26e5596761389cbb639836e6.tar.gz
crawl-ref-ad4c63dc3204adfb26e5596761389cbb639836e6.zip
Allowing Xom to still cast detect spells in the labyrinth.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8673 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index dfaacce576..56e5243a17 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -990,7 +990,7 @@ int _setup_evaporate_cast()
static bool _can_cast_detect()
{
- if (!testbits(env.level_flags, LFLAG_NO_MAGIC_MAP))
+ if (player_in_mappable_area())
return true;
mpr("You feel momentarily disoriented.");
@@ -1132,8 +1132,8 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
}
const int spfail_chance = spell_fail(spell);
- // Divination mappings backfire in Labyrinths.
- if (you.level_type == LEVEL_LABYRINTH
+ // Divination mappings backfire in Labyrinths and the Abyss.
+ if (testbits(env.level_flags, LFLAG_NO_MAGIC_MAP)
&& testbits(flags, SPFLAG_MAPPING))
{
mprf(MSGCH_WARN,