summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2013-09-16 20:27:55 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2013-09-16 20:37:57 -0600
commitd7f3ed55fe82e5a4ebcd3886a97a571d950c06e6 (patch)
treed8e92183d73108ba804e626c0fa4dbbb6e111860 /crawl-ref/source/spl-miscast.cc
parent221303f12f084df405ee590059cd05452040a571 (diff)
downloadcrawl-ref-d7f3ed55fe82e5a4ebcd3886a97a571d950c06e6.tar.gz
crawl-ref-d7f3ed55fe82e5a4ebcd3886a97a571d950c06e6.zip
Zot trap effect: Word of Recall.
Diffstat (limited to 'crawl-ref/source/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index a6b2a1e011..4ef09b5249 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -23,6 +23,7 @@
#include "mapmark.h"
#include "message.h"
#include "misc.h"
+#include "mon-cast.h"
#include "mon-place.h"
#include "mgen_data.h"
#include "mon-stuff.h"
@@ -2971,7 +2972,7 @@ void MiscastEffect::_zot()
case 3: // other misc stuff
reroll_2:
// Cases at the end are for players only.
- switch (random2(target->is_player() ? 14 : 10))
+ switch (random2(target->is_player() ? 15 : 10))
{
case 0:
target->paralyse(act_source, 2 + random2(4), cause);
@@ -3087,6 +3088,10 @@ void MiscastEffect::_zot()
you.increase_duration(DUR_SILENCE, 10 + random2(21), 30);
invalidate_agrid(true);
break;
+ case 14:
+ if (mons_word_of_recall(NULL) == 0)
+ canned_msg(MSG_NOTHING_HAPPENS);
+ break;
}
break;
}