summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-12 18:23:50 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-12 18:24:03 -0800
commit3c1420d0049511a857ff147b6eefdf78b0e1fd0e (patch)
treedd2613a8ddd03e30d2de64778200d8341637c524 /crawl-ref/source/mon-cast.cc
parentb5f8d2289d34d9aca973267ab8234319578b7814 (diff)
downloadcrawl-ref-3c1420d0049511a857ff147b6eefdf78b0e1fd0e.tar.gz
crawl-ref-3c1420d0049511a857ff147b6eefdf78b0e1fd0e.zip
Implement monster swiftness, and give it to Gastronok
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index a07ad8987c..abf7869571 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -784,6 +784,7 @@ bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
case SPELL_SUMMON_GREATER_DEMON:
case SPELL_CANTRIP:
case SPELL_BERSERKER_RAGE:
+ case SPELL_SWIFTNESS:
case SPELL_WATER_ELEMENTALS:
case SPELL_FIRE_ELEMENTALS:
case SPELL_AIR_ELEMENTALS:
@@ -1600,6 +1601,11 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
monster->go_berserk(true);
return;
+ case SPELL_SWIFTNESS:
+ monster->add_ench(ENCH_SWIFT);
+ simple_monster_message(monster, " seems to move somewhat quicker.");
+ return;
+
case SPELL_SUMMON_SMALL_MAMMALS:
case SPELL_VAMPIRE_SUMMON:
if (spell_cast == SPELL_SUMMON_SMALL_MAMMALS)