OSDN Git Service

敵が敵に対しての行動として死者復活を使うとき、視界範囲外でもメッセージが
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 11 Jun 2002 14:22:59 +0000 (14:22 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 11 Jun 2002 14:22:59 +0000 (14:22 +0000)
出ていたのを修正。

src/cmd5.c
src/defines.h
src/monster2.c
src/mspells2.c

index 59e9e2b..7880da8 100644 (file)
@@ -4224,7 +4224,7 @@ msg_print("
                                if (cave_empty_bold2(my, mx)) break;
                        }
                        if (attempt < 0) continue;
-                       summon_specific(-1, my, mx, plev, SUMMON_KNIGHTS, (PM_ALLOW_GROUP | PM_FORCE_PET));
+                       summon_specific(-1, my, mx, plev, SUMMON_KNIGHTS, (PM_ALLOW_GROUP | PM_FORCE_PET | PM_HASTE));
                }
                (void)set_hero(randint1(25) + 25, FALSE);
                (void)set_blessed(randint1(25) + 25, FALSE);
index a3648cd..d625de3 100644 (file)
 #define PM_NO_PET         0x00000020
 #define PM_ALLOW_UNIQUE   0x00000040
 #define PM_IGNORE_TERRAIN 0x00000080
+#define PM_HASTE          0x00000100
 
 
 /*
index bcaeefb..f493c94 100644 (file)
@@ -3048,7 +3048,7 @@ msg_print("
          }
        }
 
-       if (summon_specific_type == SUMMON_KNIGHTS) m_ptr->fast = 100;
+       if (mode & PM_HASTE) m_ptr->fast = 100;
 
        if (m_ptr->mspeed > 199) m_ptr->mspeed = 199;
 
index 314fdcc..f2e8286 100644 (file)
@@ -3512,18 +3512,28 @@ msg_format("%^s
                        /* RF6_RAISE_DEAD */
                        case 160+15:
                        {
-                               disturb(1, 0);
+                               if (known)
+                               {
+                                       if (see_either)
+                                       {
+                                               disturb(1, 0);
 #ifdef JP
-                               if (blind) msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
+                                               if (blind) msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name);
 #else
-                               if (blind) msg_format("%^s mumbles.", m_name);
+                                               if (blind) msg_format("%^s mumbles.", m_name);
 #endif
 
 #ifdef JP
-                               else msg_format("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
+                                               else msg_format("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name);
 #else
-                               else msg_format("%^s casts a spell to revive corpses.", m_name);
+                                               else msg_format("%^s casts a spell to revive corpses.", m_name);
 #endif
+                                       }
+                                       else
+                                       {
+                                                mon_fight = TRUE;
+                                       }
+                               }
                                animate_dead(m_idx, m_ptr->fy, m_ptr->fx);
                                break;
                        }