OSDN Git Service

TOband teamよりの報告で、monst_breath_monst() で半径0のボールを撃てない仕様
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 24 Sep 2002 15:27:06 +0000 (15:27 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 24 Sep 2002 15:27:06 +0000 (15:27 +0000)
だったのを修正、しかし現在は使っていないので無関係。

src/mspells2.c

index 910f11e..3e2ebf5 100644 (file)
@@ -26,7 +26,7 @@ static void monst_breath_monst(int m_idx, int y, int x, int typ, int dam_hp, int
        monster_race *r_ptr = &r_info[m_ptr->r_idx];
 
        /* Determine the radius of the blast */
-       if (rad < 1) rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
+       if (rad < 1 && breath) rad = (r_ptr->flags2 & RF2_POWERFUL) ? 3 : 2;
 
        /* Handle breath attacks */
        if (breath) rad = 0 - rad;