From e902e699c6ff234e6b04f6d0a8f4190548db3e8f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 13 Nov 2009 15:37:34 +0100 Subject: Change arena foe check to assert. --- crawl-ref/source/mon-behv.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crawl-ref/source/mon-behv.cc') diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc index 6868d90386..01be99300a 100644 --- a/crawl-ref/source/mon-behv.cc +++ b/crawl-ref/source/mon-behv.cc @@ -1041,8 +1041,7 @@ void handle_behaviour(monsters *mon) } // Make sure monsters are not targetting the player in arena mode. - if (crawl_state.arena && mon->foe == MHITYOU) - mon->foe = MHITNOT; + ASSERT(!(crawl_state.arena && mon->foe == MHITYOU)); if (mons_wall_shielded(mon) && cell_is_solid(mon->pos())) { -- cgit v1.2.3-54-g00ecf