OSDN Git Service

[Refactor] #37353 inside_quest を player_type から floor_type へ移動. / Move inside_quest...
[hengband/hengband.git] / src / mspells1.c
index 3dc2b9e..175b5cf 100644 (file)
@@ -1383,7 +1383,7 @@ bool make_attack_spell(MONSTER_IDX m_idx)
        bool direct;
 
        bool in_no_magic_dungeon = (d_info[p_ptr->dungeon_idx].flags1 & DF1_NO_MAGIC) && p_ptr->current_floor_ptr->dun_level
-               && (!p_ptr->inside_quest || is_fixed_quest_idx(p_ptr->inside_quest));
+               && (!p_ptr->current_floor_ptr->inside_quest || is_fixed_quest_idx(p_ptr->current_floor_ptr->inside_quest));
 
        bool can_use_lite_area = FALSE;