summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dungeon.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r--crawl-ref/source/dungeon.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 7640048c11..8c91a76616 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -4967,6 +4967,9 @@ int dgn_place_monster(mons_spec &mspec,
if (m_band)
mg.flags |= MG_PERMIT_BANDS;
+ // Store any extra flags here.
+ mg.extra_flags |= mspec.extra_monster_flags;
+
const int mindex = place_monster(mg, true);
if (mindex != -1)
{
@@ -4975,7 +4978,9 @@ int dgn_place_monster(mons_spec &mspec,
_dgn_give_mon_spec_items(mspec, mindex, mid, monster_level);
if (mspec.explicit_spells)
mons.spells = mspec.spells;
- mons.flags |= mspec.extra_monster_flags;
+ // These are applied earlier to prevent issues with renamed monsters
+ // and "<monster> comes into view" (see delay.cc:_monster_warning).
+ //mons.flags |= mspec.extra_monster_flags;
if (mons.is_priest() && mons.god == GOD_NO_GOD)
mons.god = GOD_NAMELESS;
}