summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc18
1 files changed, 14 insertions, 4 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 3a0bffba35..2d404b801d 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -971,14 +971,24 @@ char burn_freeze(int pow, beam_type flavour)
return 1;
}
-bool summon_spatial_vortex(bool god_gift)
+bool summon_spatial_vortices(int how_many, bool god_gift)
{
+ bool success = false;
+
mpr("Space twists in upon itself!");
- return (create_monster(
+ for (int i = 0; i < how_many; ++i)
+ {
+ if (create_monster(
mgen_data(MONS_SPATIAL_VORTEX, BEH_HOSTILE,
- 3, you.pos(),
- MHITYOU, (god_gift ? MG_GOD_GIFT : 0))) != -1);
+ 3, you.pos(), MHITYOU,
+ (god_gift ? MG_GOD_GIFT : 0) | MG_FORCE_BEH)) != -1)
+ {
+ success = true;
+ }
+ }
+
+ return (success);
}
bool summon_animals(int pow)