diff options
author | DracoOmega <draco_omega@live.com> | 2014-02-22 22:03:25 -0330 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-02-26 21:19:58 -0700 |
commit | 070f7a974ff50535167696cdd3a01f6d77003ded (patch) | |
tree | 051aa4ca7faad4760a8d97e1a120264a607dce7a /crawl-ref/source/mon-act.cc | |
parent | 75deb85f6e81443628063de806a368df0c3b08a3 (diff) | |
download | crawl-ref-070f7a974ff50535167696cdd3a01f6d77003ded.tar.gz crawl-ref-070f7a974ff50535167696cdd3a01f6d77003ded.zip |
Fix scroll of summoning being capped
The code refactoring that happened when monster summon caps were
added accidentally broke the fact that shadow creatures produced
by the scroll were not supposed to be capped. However, it looks
like it was probably always true that casting shadow creatures
after reading a scroll could remove much of what the scroll
generated and probably shouldn't be doing that either (I wonder if
this ever actually happened?)
Now the scroll and spell are treated as two difference sources, and
the cap for the latter will not affect the former in any way.
(cherry picked from commit 2dda36adbc4ae3e5666489b06bdda8f92ecae781)
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r-- | crawl-ref/source/mon-act.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc index 140cd59e83..ce8e35876a 100644 --- a/crawl-ref/source/mon-act.cc +++ b/crawl-ref/source/mon-act.cc @@ -994,7 +994,7 @@ static bool _handle_scroll(monster* mons) { create_monster( mgen_data(RANDOM_MOBILE_MONSTER, SAME_ATTITUDE(mons), mons, - 3, SPELL_SHADOW_CREATURES, mons->pos(), mons->foe, + 3, MON_SUMM_SCROLL, mons->pos(), mons->foe, 0, GOD_NO_GOD)); } ident = ID_KNOWN_TYPE; |