OSDN Git Service

[Fix] GF_STAR_HEALの処理でclone monsterが実行される
[hengband/hengband.git] / src / effect / effect-processor.c
index 3a31ff0..e4d5e95 100644 (file)
@@ -7,7 +7,6 @@
 #include "effect/effect-player.h"
 #include "effect/spells-effect-util.h"
 #include "floor/cave.h"
-#include "floor/floor.h"
 #include "floor/line-of-sight.h"
 #include "game-option/special-options.h"
 #include "grid/feature-flag-types.h"
@@ -318,7 +317,7 @@ bool project(player_type *caster_ptr, const MONSTER_IDX who, POSITION rad, POSIT
 
             if (affect_item(caster_ptr, 0, 0, y, x, dam, GF_SUPER_RAY))
                 notice = TRUE;
-            if (!cave_have_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT)) {
+            if (!cave_has_flag_bold(caster_ptr->current_floor_ptr, y, x, FF_PROJECT)) {
                 if (second_step)
                     continue;
                 break;
@@ -386,7 +385,7 @@ bool project(player_type *caster_ptr, const MONSTER_IDX who, POSITION rad, POSIT
             if (!cave_los_bold(caster_ptr->current_floor_ptr, ny, nx) && (rad > 0))
                 break;
         } else {
-            if (!cave_have_flag_bold(caster_ptr->current_floor_ptr, ny, nx, FF_PROJECT) && (rad > 0))
+            if (!cave_has_flag_bold(caster_ptr->current_floor_ptr, ny, nx, FF_PROJECT) && (rad > 0))
                 break;
         }