summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-13 22:57:46 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-13 22:57:46 +0000
commit3b14e591db1e1df2c010f026b8c74f92d7a6aa41 (patch)
treec070ff1dfa4d7742be9f5677405470cb3759571a /crawl-ref/source/traps.cc
parent2c7ef91ccd4d82e69621f093bdb5f4a0c67bd1ab (diff)
downloadcrawl-ref-3b14e591db1e1df2c010f026b8c74f92d7a6aa41.tar.gz
crawl-ref-3b14e591db1e1df2c010f026b8c74f92d7a6aa41.zip
Minor messaging bug with Zot traps.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7241 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index 5e100b44fd..bcdaa54f79 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -587,14 +587,11 @@ void trap_def::trigger(actor& triggerer, bool flat_footed)
MiscastEffect( m, ZOT_TRAP_MISCAST, SPTYP_RANDOM,
3, "the power of Zot" );
}
- else if (in_sight)
+ else if (in_sight && one_chance_in(5))
{
- if (one_chance_in(5))
- {
- mpr("The power of Zot is invoked against you!");
- MiscastEffect( &you, ZOT_TRAP_MISCAST, SPTYP_RANDOM,
- 3, "the power of Zot" );
- }
+ mpr("The power of Zot is invoked against you!");
+ MiscastEffect( &you, ZOT_TRAP_MISCAST, SPTYP_RANDOM,
+ 3, "the power of Zot" );
}
else if (player_can_hear(this->pos))
{