OSDN Git Service

モンスターがテレポートした時反撃対象を解除するようにした。これによってテレポートアウェイで飛ばしたモンスターが次ターンにプレイヤーの周りに召喚する事を防げる。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 8 Feb 2002 20:37:36 +0000 (20:37 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 8 Feb 2002 20:37:36 +0000 (20:37 +0000)
src/spells3.c

index c286bb5..ab6b0ff 100644 (file)
@@ -122,6 +122,9 @@ bool teleport_away(int m_idx, int dis, bool dec_valour)
        m_ptr->fy = ny;
        m_ptr->fx = nx;
 
+       /* Forget the counter target */
+       reset_target(m_ptr);
+
        /* Update the monster (new location) */
        update_mon(m_idx, TRUE);