OSDN Git Service

モンスター同士の殴り合いで, 一部の攻撃をACで回避した際にメッセージな
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 6 Jul 2003 19:31:51 +0000 (19:31 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 6 Jul 2003 19:31:51 +0000 (19:31 +0000)
しで起きていた現象があったので, "かわした" メッセージを出さない攻撃方
法 (睨みなど) を睡眠中にACで回避しても睡眠を妨げないように変更.

src/melee2.c

index 7197553..f2ea4ee 100644 (file)
@@ -1472,9 +1472,6 @@ static bool monst_attack_monst(int m_idx, int t_idx)
 
        if (d_info[dungeon_type].flags1 & DF1_NO_MELEE) return (FALSE);
 
-       /* Wake it up */
-       t_ptr->csleep = 0;
-
        /* Total armor */
        ac = tr_ptr->ac;
 
@@ -1535,6 +1532,9 @@ static bool monst_attack_monst(int m_idx, int t_idx)
                /* Monster hits */
                if (!effect || check_hit2(power, rlev, ac, m_ptr->stunned))
                {
+                       /* Wake it up */
+                       t_ptr->csleep = 0;
+
                        /* Describe the attack method */
                        switch (method)
                        {
@@ -2147,6 +2147,9 @@ msg_format("%s
                        case RBM_ENGULF:
                        case RBM_CHARGE:
                                {
+                                       /* Wake it up */
+                                       t_ptr->csleep = 0;
+
                                        /* Visible monsters */
                                        if (see_m)
                                        {