diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 18:23:50 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-11-12 18:24:03 -0800 |
commit | 3c1420d0049511a857ff147b6eefdf78b0e1fd0e (patch) | |
tree | dd2613a8ddd03e30d2de64778200d8341637c524 /crawl-ref/source/mon-cast.cc | |
parent | b5f8d2289d34d9aca973267ab8234319578b7814 (diff) | |
download | crawl-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.cc | 6 |
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) |