diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-18 11:41:50 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-08-18 11:41:50 +0000 |
commit | 7dbdd9c42c89814d9ccbe57728a8806b2d5350f7 (patch) | |
tree | 271a902db8ae1f87388fff8ea898d3b4d756ad76 | |
parent | 0002b803e645147435dd041907e76be7aa649473 (diff) | |
download | crawl-ref-7dbdd9c42c89814d9ccbe57728a8806b2d5350f7.tar.gz crawl-ref-7dbdd9c42c89814d9ccbe57728a8806b2d5350f7.zip |
Apply trunk r10564 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10565 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/monplace.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 358fae4dbd..d5c8035a0b 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -955,6 +955,15 @@ int place_monster(mgen_data mg, bool force_pos) break; band_template.cls = band_monsters[i]; + + // We don't want to place a unique that has already been + // generated. + if (mons_is_unique(band_template.cls) + && you.unique_creatures[band_template.cls]) + { + continue; + } + const int band_id = _place_monster_aux(band_template, false); if (band_id != -1 && band_id != NON_MONSTER) { |