summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-03-22 11:22:32 +0000
committerChris Campbell <chriscampbell89@gmail.com>2014-03-22 11:22:32 +0000
commitb19ebb8e74a6495532802791ab6766e656b119f6 (patch)
tree859439d366897fd6ad475fbf5f97a9eef8c3c15a /crawl-ref/source/mon-cast.cc
parentfb3b2ccdc0fcd94e36f57d1fd1d108505ce5fcb7 (diff)
downloadcrawl-ref-b19ebb8e74a6495532802791ab6766e656b119f6.tar.gz
crawl-ref-b19ebb8e74a6495532802791ab6766e656b119f6.zip
Don't let monsters abjure with a rod of shadows
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 704e9c98f4..18989f91e8 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -4790,8 +4790,11 @@ void mons_cast(monster* mons, bolt &pbolt, spell_type spell_cast,
case SPELL_SHADOW_CREATURES: // summon anything appropriate for level
case SPELL_WEAVE_SHADOWS:
{
- if (_mons_abjured(mons, monsterNearby))
+ if (spell_cast == SPELL_SHADOW_CREATURES
+ && _mons_abjured(mons, monsterNearby))
+ {
return;
+ }
level_id place = (spell_cast == SPELL_SHADOW_CREATURES)
? level_id::current()