OSDN Git Service

ペットの'B'が投げ落としを使う条件を, 攻撃魔法許可かつテレポート系許可
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 4 Jul 2003 14:55:51 +0000 (14:55 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 4 Jul 2003 14:55:51 +0000 (14:55 +0000)
の場合のみに限定.

src/mspells2.c

index 1364895..512984d 100644 (file)
@@ -444,7 +444,8 @@ bool monst_spell_monst(int m_idx)
                {
                        if (r_ptr->d_char == 'B')
                        {
-                               if (!(p_ptr->pet_extra_flags & PF_TELEPORT)) f6 &= ~(RF6_SPECIAL);
+                               if ((p_ptr->pet_extra_flags & (PF_ATTACK_SPELL | PF_TELEPORT)) != (PF_ATTACK_SPELL | PF_TELEPORT))
+                                       f6 &= ~(RF6_SPECIAL);
                        }
                        else f6 &= ~(RF6_SPECIAL);
                }