summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 945fe5efad..fc6afaffa3 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -4854,6 +4854,8 @@ static bool wielded_weapon_check(const item_def *weapon)
// Returns true if you hit the monster.
bool you_attack(int monster_attacked, bool unarmed_attacks)
{
+ ASSERT(!crawl_state.arena);
+
monsters *defender = &menv[monster_attacked];
melee_attack attk(&you, defender, unarmed_attacks);
@@ -4912,6 +4914,8 @@ static void mons_lose_attack_energy(monsters *attacker, int wpn_speed,
// A monster attacking the player.
bool monster_attack(int monster_attacking, bool allow_unarmed)
{
+ ASSERT(!crawl_state.arena);
+
monsters *attacker = &menv[monster_attacking];
// Friendly and good neutral monsters won't attack unless confused.