summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-10 20:20:54 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-10 21:38:22 -0600
commit2a5c544ae8650b4a2e5aed57a487cbdf1731d487 (patch)
tree4a27ac2195a982f4fa01d3dc950d2ef22b4668bd /crawl-ref/source/mon-cast.cc
parent551055afaa86b1b141c89ecd9948a865fa779e6f (diff)
downloadcrawl-ref-2a5c544ae8650b4a2e5aed57a487cbdf1731d487.tar.gz
crawl-ref-2a5c544ae8650b4a2e5aed57a487cbdf1731d487.zip
New monster spell: Drain Magic.
It's an antimagic enchantment, borrowing the code from melee antimagic (which now internally refers to the new beam type). I have a vague notion that this might remove antimagic effects from the caster at some point, but that's for later.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index d26e1c4b76..c27d21e029 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -1079,6 +1079,11 @@ bolt mons_spell_beam(monster* mons, spell_type spell_cast, int power,
beam.is_beam = true;
break;
+ case SPELL_DRAIN_MAGIC:
+ beam.ench_power = mons->spell_hd(real_spell) * 6;
+ beam.flavour = BEAM_DRAIN_MAGIC;
+ break;
+
default:
if (check_validity)
{