diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 22:36:23 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 22:36:23 +0000 |
commit | f9d00d00e2bd56d0f454ebea332e0617dcc4caa0 (patch) | |
tree | b2c61355ccfc905e1e5fec07537976a9ce0071ed /crawl-ref/source/monplace.cc | |
parent | e9ad68074279a85382ad98d33f147234f9a79499 (diff) | |
download | crawl-ref-f9d00d00e2bd56d0f454ebea332e0617dcc4caa0.tar.gz crawl-ref-f9d00d00e2bd56d0f454ebea332e0617dcc4caa0.zip |
Some assertions for behaviour_event().
In mons_place(), don't alert summons to the player's presence during arena
mode.
In monster_grid(), don't do check_awaken() on monsters during arena mode.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8093 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r-- | crawl-ref/source/monplace.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc index 985dab7cc0..85e000dc33 100644 --- a/crawl-ref/source/monplace.cc +++ b/crawl-ref/source/monplace.cc @@ -2116,11 +2116,14 @@ int mons_place(mgen_data mg) if (creation->type == MONS_RAKSHASA_FAKE && !one_chance_in(3)) creation->add_ench(ENCH_INVIS); - if (!(mg.flags & MG_FORCE_BEH)) + if (!(mg.flags & MG_FORCE_BEH) && !crawl_state.arena) player_angers_monster(creation); - // Make summoned being aware of player's presence. - behaviour_event(creation, ME_ALERT, MHITYOU); + if (crawl_state.arena) + behaviour_event(creation, ME_EVAL); + else + // Make summoned being aware of player's presence. + behaviour_event(creation, ME_ALERT, MHITYOU); } return (mid); |