summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/monplace.cc9
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)
{