OSDN Git Service

モンスター格闘場でモンスターのテレポートを追尾できてしまうバグを修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 28 Jul 2004 22:27:04 +0000 (22:27 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 28 Jul 2004 22:27:04 +0000 (22:27 +0000)
src/spells3.c

index 817c46a..bf4bf2d 100644 (file)
@@ -569,7 +569,7 @@ void teleport_away_followable(int m_idx)
 
        teleport_away(m_idx, MAX_SIGHT * 2 + 5, 0L);
 
-       if (old_ml && (old_cdis <= MAX_SIGHT) && !world_monster && los(py, px, oldfy, oldfx))
+       if (old_ml && (old_cdis <= MAX_SIGHT) && !world_monster && !p_ptr->inside_battle && los(py, px, oldfy, oldfx))
        {
                bool follow = FALSE;