summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-05 02:09:30 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-05 02:09:30 +0000
commit59ceaadc7d5553ff7667db7d28abc41c2f9e2f0a (patch)
tree82a251b01208573c7772661906403dccb3b4b1d1 /crawl-ref
parent1560fcf13b3d4c89ced8f8de494cff17c6102bf4 (diff)
downloadcrawl-ref-59ceaadc7d5553ff7667db7d28abc41c2f9e2f0a.tar.gz
crawl-ref-59ceaadc7d5553ff7667db7d28abc41c2f9e2f0a.zip
During arena mode, the Cantrip spell should only use buff messages, so none of
the messages are directed at the player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8223 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mstuff2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index 3aa39fdc22..bb63f972fe 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -42,6 +42,7 @@ REVISION("$Rev$");
#include "spl-cast.h"
#include "spl-mis.h"
#include "spl-util.h"
+#include "state.h"
#include "stuff.h"
#include "traps.h"
#include "view.h"
@@ -467,7 +468,7 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
// spells (ie orc priest) can be toned down a bit. -- bwr
//
// XXX: Needs expansion, and perhaps different priest/mage flavours.
- switch (random2(buff_only ? 4 : 7))
+ switch (random2((buff_only || crawl_state.arena) ? 4 : 7))
{
case 0:
simple_monster_message(monster, " glows brightly for a moment.",