summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-14 14:33:07 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-14 14:35:33 +0100
commitd8435ada14d2be5243e3ce499fbd2666bb2da90d (patch)
tree58a63598e1dc4a737ce29e85fd7920fe5f358dba /crawl-ref/source/mon-cast.cc
parentbddd83ea2d5307a2669efee6eb228cbdda02554c (diff)
downloadcrawl-ref-d8435ada14d2be5243e3ce499fbd2666bb2da90d.tar.gz
crawl-ref-d8435ada14d2be5243e3ce499fbd2666bb2da90d.zip
Implement "blink other closer" as a monster spell.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 9183a23286..eb2a5e8b8f 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -621,6 +621,11 @@ bolt mons_spells( monsters *mons, spell_type spell_cast, int power,
beam.is_beam = true;
break;
+ case SPELL_BLINK_OTHER_CLOSER:
+ beam.flavour = BEAM_BLINK_CLOSER;
+ beam.is_beam = true;
+ break;
+
case SPELL_FIRE_BREATH:
beam.name = "blast of flame";
beam.aux_source = "blast of fiery breath";
@@ -2036,6 +2041,18 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
}
break;
}
+ case SPELL_BLINK_OTHER_CLOSER:
+ {
+ // Allow the caster to comment on moving the foe.
+ std::string msg = getSpeakString(monster->name(DESC_PLAIN)
+ + " blink_other_closer");
+ if (!msg.empty() && msg != "__NONE")
+ {
+ mons_speaks_msg(monster, msg, MSGCH_TALK,
+ silenced(you.pos()) || silenced(monster->pos()));
+ }
+ break;
+ }
case SPELL_TOMB_OF_DOROKLOHE:
{
sumcount = 0;