summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-20 01:32:57 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-20 17:29:37 +0100
commit85138818b78fbeec60ef96a72f8fa5ba05034274 (patch)
tree9543907da119d0fc74e06b06a122dad876197cf4
parent198cb7cf6376840927d897c24c5ab2bec36b4739 (diff)
downloadcrawl-ref-85138818b78fbeec60ef96a72f8fa5ba05034274.tar.gz
crawl-ref-85138818b78fbeec60ef96a72f8fa5ba05034274.zip
IOOD as a monster spell.
-rw-r--r--crawl-ref/source/dat/database/monspell.txt8
-rw-r--r--crawl-ref/source/mon-cast.cc9
2 files changed, 17 insertions, 0 deletions
diff --git a/crawl-ref/source/dat/database/monspell.txt b/crawl-ref/source/dat/database/monspell.txt
index 0ce22a12e5..ce3a29d30e 100644
--- a/crawl-ref/source/dat/database/monspell.txt
+++ b/crawl-ref/source/dat/database/monspell.txt
@@ -92,6 +92,14 @@ Symbol of Torment cast
unseen Symbol of Torment cast
@The_something@ calls on the powers of Hell!
+%%%%
+Iskenderun's Orb of Destruction cast
+
+@The_monster@ conjures a glowing orb.
+
+@The_monster@ conjures an orb of pure magic.
+
+@The_monster@ launches a ball of destructive magic.
#####################################################
# Individual innate spells (breathing and spitting).
#####################################################
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index ba5982b8c4..25864af558 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -20,6 +20,7 @@
#include "mon-behv.h"
#include "mon-iter.h"
#include "mon-place.h"
+#include "mon-project.h"
#include "terrain.h"
#include "mgen_data.h"
#include "coord.h"
@@ -669,6 +670,11 @@ bolt mons_spells( monsters *mons, spell_type spell_cast, int power,
beam.is_beam = true;
break;
+ case SPELL_IOOD: // tracer only
+ beam.flavour = BEAM_NUKE;
+ beam.is_beam = true;
+ break;
+
default:
if (check_validity)
{
@@ -2171,6 +2177,9 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
monster->foe, 0, god));
}
return;
+ case SPELL_IOOD:
+ cast_iood(monster, 6 * monster->hit_dice, &pbolt);
+ return;
}
// If a monster just came into view and immediately cast a spell,