X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=blobdiff_plain;f=src%2Frealm-hissatsu.c;fp=src%2Frealm-hissatsu.c;h=3111b763921fda103c9e29dea948fc706d0743e3;hp=64ba090b19d7fd96ea6d142e07c9c769964a0e9a;hb=0dbae6f56c7024ac1985958dd99c5f9936b2116b;hpb=471fee03ffb2a8bf5e33fd9993543ebec2e36f9a diff --git a/src/realm-hissatsu.c b/src/realm-hissatsu.c index 64ba090b1..3111b7639 100644 --- a/src/realm-hissatsu.c +++ b/src/realm-hissatsu.c @@ -277,7 +277,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode) msg_print(_("その方向にはモンスターはいません。", "There is no monster.")); return NULL; } - if (d_info[dungeon_idx].flags1 & DF1_NO_MELEE) + if (d_info[p_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) { return ""; } @@ -649,7 +649,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode) return NULL; } - if (d_info[dungeon_idx].flags1 & DF1_NO_MELEE) + if (d_info[p_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) { return ""; } @@ -849,7 +849,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode) y = p_ptr->y + ddy[dir]; x = p_ptr->x + ddx[dir]; - if (d_info[dungeon_idx].flags1 & DF1_NO_MELEE) + if (d_info[p_ptr->dungeon_idx].flags1 & DF1_NO_MELEE) { msg_print(_("なぜか攻撃することができない。", "Something prevent you from attacking.")); return "";