From 31abd5622518d8295cdcd9b3df85f1ae58ab84ef Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sat, 14 Nov 2009 15:53:40 +0100 Subject: Add "blink away" and "blink ranged" to mon-cast.cc. --- crawl-ref/source/mon-cast.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/mon-cast.cc') 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)) -- cgit v1.2.3-54-g00ecf