summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorDracoOmega <draco_omega@live.com>2014-03-22 02:27:52 -0230
committerDracoOmega <draco_omega@live.com>2014-03-22 02:36:42 -0230
commit82c2087cf2be56b3d372b1be44563347e47abc21 (patch)
tree668a8ec4b1dc72f9d3ff32b850fe414da90b31c0 /crawl-ref/source/mon-cast.cc
parent779366f74f0cda46837472856a3cfdda1e57008a (diff)
downloadcrawl-ref-82c2087cf2be56b3d372b1be44563347e47abc21.tar.gz
crawl-ref-82c2087cf2be56b3d372b1be44563347e47abc21.zip
Don't let monsters abjure using a Rod of the Swarm
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 105c32570c..4e08ce8048 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -3582,9 +3582,10 @@ static void _do_high_level_summon(monster* mons, bool monsterNearby,
spell_type spell_cast,
monster_type (*mpicker)(), int nsummons,
god_type god, coord_def *target = NULL,
- void (*post_hook)(monster*, coord_def) = NULL)
+ void (*post_hook)(monster*, coord_def) = NULL,
+ bool allow_abjure = true)
{
- if (_mons_abjured(mons, monsterNearby))
+ if (allow_abjure && _mons_abjured(mons, monsterNearby))
return;
const int duration = min(2 + mons->spell_hd(spell_cast) / 5, 6);
@@ -4960,7 +4961,8 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast,
case SPELL_SUMMON_SWARM:
_do_high_level_summon(mons, monsterNearby, spell_cast,
- _pick_swarmer, random_range(3, 6), god);
+ _pick_swarmer, random_range(3, 6), god,
+ NULL, NULL, false);
return;
case SPELL_SUMMON_UFETUBUS: