summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-12 20:49:08 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-12 20:49:08 -0600
commitb6ec3e0c9ccde2fd71dc546a31a66cdf2098422a (patch)
tree2025ccbef497e9758b56a571208506de9efdd793 /crawl-ref/source/ghost.cc
parentf9857336ce9090af585e8845d7e3d7235ed97de3 (diff)
downloadcrawl-ref-b6ec3e0c9ccde2fd71dc546a31a66cdf2098422a.tar.gz
crawl-ref-b6ec3e0c9ccde2fd71dc546a31a66cdf2098422a.zip
Let ghosts (but not panlords) cast Tornado.
Some discussion with the other devs suggests the previous concerns with this (scummability, etc.) are edge cases at best; it's early enough in trunk that I think we can get away with seeing what happens here.
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index f505233bb8..2c8f6a0167 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -116,6 +116,7 @@ static spell_type search_order_third[] =
// (5th) position to work.
static spell_type search_order_misc[] =
{
+ SPELL_TORNADO,
SPELL_SHATTER,
SPELL_AGONY,
SPELL_BANISHMENT,
@@ -291,7 +292,8 @@ void ghost_demon::init_random_demon()
if (spells[i] == SPELL_AGONY)
spells[i] = SPELL_SYMBOL_OF_TORMENT;
if (spells[i] == SPELL_CONJURE_BALL_LIGHTNING
- || SPELL_OZOCUBUS_REFRIGERATION)
+ || spells[i] == SPELL_OZOCUBUS_REFRIGERATION
+ || spells[i] == SPELL_TORNADO)
{
spells[i] = SPELL_NO_SPELL;
}