diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-14 15:53:40 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-14 16:59:22 +0100 |
commit | 31abd5622518d8295cdcd9b3df85f1ae58ab84ef (patch) | |
tree | f17bf3ca37b05fcaba4afa76e6b70250ac2535e6 /crawl-ref/source/mon-cast.cc | |
parent | 56340c3e0560dd4791617784e5f09363bfe06373 (diff) | |
download | crawl-ref-31abd5622518d8295cdcd9b3df85f1ae58ab84ef.tar.gz crawl-ref-31abd5622518d8295cdcd9b3df85f1ae58ab84ef.zip |
Add "blink away" and "blink ranged" to mon-cast.cc.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r-- | crawl-ref/source/mon-cast.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc index eb2a5e8b8f..b44fdb765c 100644 --- a/crawl-ref/source/mon-cast.cc +++ b/crawl-ref/source/mon-cast.cc @@ -23,13 +23,14 @@ #include "mon-util.h" #include "random.h" #include "religion.h" +#include "shout.h" #include "spl-util.h" #include "spl-cast.h" #include "spells1.h" #include "spells3.h" #include "stuff.h" +#include "teleport.h" #include "view.h" -#include "shout.h" #include "viewchar.h" static bool _valid_mon_spells[NUM_SPELLS]; @@ -799,6 +800,8 @@ bool setup_mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast, case SPELL_KRAKEN_TENTACLES: case SPELL_BLINK: case SPELL_CONTROLLED_BLINK: + case SPELL_BLINK_RANGE: + case SPELL_BLINK_AWAY: case SPELL_TOMB_OF_DOROKLOHE: case SPELL_CHAIN_LIGHTNING: // the only user is reckless case SPELL_SUMMON_EYEBALLS: @@ -1287,6 +1290,10 @@ bool handle_mon_spell(monsters *monster, bolt &beem) else return (false); } + else if (spell_cast == SPELL_BLINK_RANGE) + blink_range(monster); + else if (spell_cast == SPELL_BLINK_AWAY) + blink_away(monster); else { if (spell_needs_foe(spell_cast)) |