OSDN Git Service

fix monster-arena out-of-sight bug
authordis- <dis.rogue@gmail.com>
Wed, 17 Sep 2014 03:52:40 +0000 (12:52 +0900)
committerdis- <dis.rogue@gmail.com>
Wed, 17 Sep 2014 03:52:40 +0000 (12:52 +0900)
src/melee2.c

index 1044589..e0c6149 100644 (file)
@@ -3501,7 +3501,7 @@ void process_monsters(void)
                }
 
                /* Handle "sight" and "aggravation" */
-               else if ((m_ptr->cdis <= MAX_SIGHT) &&
+        else if ((m_ptr->cdis <= MAX_SIGHT || p_ptr->inside_battle) &&
                        (player_has_los_bold(fy, fx) || (p_ptr->cursed & TRC_AGGRAVATE)))
                {
                        /* We can "see" or "feel" the player */