OSDN Git Service

GF_PSIを当てた時に, プレイヤーに視線が通らず影響のないはずのモンス
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 11 May 2003 14:49:24 +0000 (14:49 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 11 May 2003 14:49:24 +0000 (14:49 +0000)
ターが起きていたバグを修正.

src/spells1.c

index 84515ad..f0dd59e 100644 (file)
@@ -2779,13 +2779,13 @@ note_dies = "
                        /* PSI only works if the monster can see you! -- RG */
                        if (!(los(m_ptr->fy, m_ptr->fx, py, px)))
                        {
-                               dam = 0;
 #ifdef JP
-note = "¤Ï¤¢¤Ê¤¿¤¬¸«¤¨¤Ê¤¤¤Î¤Ç±Æ¶Á¤µ¤ì¤Ê¤¤¡ª";
+                               if (seen) msg_format("%s¤Ï¤¢¤Ê¤¿¤¬¸«¤¨¤Ê¤¤¤Î¤Ç±Æ¶Á¤µ¤ì¤Ê¤¤¡ª", m_name);
 #else
-                               note = " can't see you, and isn't affected!";
+                               if (seen) msg_format("%^s  can't see you, and isn't affected!", m_name);
 #endif
-
+                               skipped = TRUE;
+                               break;
                        }
 
                        if (r_ptr->flags3 & (RF3_RES_ALL))