OSDN Git Service

壁の向こうにいる場合は友好的/ペットのユニークの退却時の台詞は聞こえな
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 27 Nov 2003 15:17:27 +0000 (15:17 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 27 Nov 2003 15:17:27 +0000 (15:17 +0000)
いようにした.

src/melee2.c

index d32bf98..4c845fc 100644 (file)
@@ -2433,7 +2433,8 @@ msg_print("
 
                                if (m_ptr->ml)
                                {
-                                       if ((r_ptr->flags2 & RF2_CAN_SPEAK) && (m_ptr->r_idx != MON_GRIP) && (m_ptr->r_idx != MON_WOLF) && (m_ptr->r_idx != MON_FANG))
+                                       if ((r_ptr->flags2 & RF2_CAN_SPEAK) && (m_ptr->r_idx != MON_GRIP) && (m_ptr->r_idx != MON_WOLF) && (m_ptr->r_idx != MON_FANG) &&
+                                           player_has_los_bold(m_ptr->fy, m_ptr->fx) && projectable(m_ptr->fy, m_ptr->fx, py, px))
                                        {
 #ifdef JP
                                                msg_format("%^s¡Ö¥Ô¥ó¥Á¤À¡ªÂàµÑ¤µ¤»¤Æ¤â¤é¤¦¡ª¡×", m_name);