OSDN Git Service

[Fix] #37285 ティボルトのUNIQUE属性付加忘れを修正。
[hengband/hengband.git] / src / realm-hissatsu.c
index 6bcb5a6..f0ac70c 100644 (file)
@@ -4,6 +4,7 @@
 #include "monsterrace-hook.h"
 #include "projection.h"
 #include "artifact.h"
+#include "monster.h"
 #include "player-status.h"
 #include "feature.h"
 
@@ -288,7 +289,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                POSITION ty = y, tx = x;
                                POSITION oy = y, ox = x;
                                MONSTER_IDX m_idx = current_floor_ptr->grid_array[y][x].m_idx;
-                               monster_type *m_ptr = &m_list[m_idx];
+                               monster_type *m_ptr = &current_floor_ptr->m_list[m_idx];
                                GAME_TEXT m_name[MAX_NLEN];
 
                                monster_desc(m_name, m_ptr, 0);
@@ -362,8 +363,6 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
 
                        /* Destroy the feature */
                        cave_alter_feat(y, x, FF_HURT_ROCK);
-
-                       /* Update some things */
                        p_ptr->update |= (PU_FLOW);
                }
                break;
@@ -446,7 +445,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
        case 16:
                if (name) return _("捨て身", "Desperate Attack");
                if (desc) return _("強力な攻撃を繰り出す。次のターンまでの間、食らうダメージが増える。",
-                       "Attacks with all of your power. But all damages you take will be doubled for one turn.");
+                       "Attacks with all of your power. But all damages you take will be doubled for one current_world_ptr->game_turn.");
 
                if (cast)
                {
@@ -526,7 +525,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                y = p_ptr->y + ddy_ddd[dir];
                                x = p_ptr->x + ddx_ddd[dir];
                                g_ptr = &current_floor_ptr->grid_array[y][x];
-                               m_ptr = &m_list[g_ptr->m_idx];
+                               m_ptr = &current_floor_ptr->m_list[g_ptr->m_idx];
 
                                /* Hack -- attack monsters */
                                if (g_ptr->m_idx && (m_ptr->ml || cave_have_flag_bold(y, x, FF_PROJECT)))
@@ -661,7 +660,7 @@ concptr do_hissatsu_spell(SPELL_IDX spell, BIT_FLAGS mode)
                                ny = y + ddy[dir];
                                nx = x + ddx[dir];
                                m_idx = g_ptr->m_idx;
-                               m_ptr = &m_list[m_idx];
+                               m_ptr = &current_floor_ptr->m_list[m_idx];
 
                                /* Monster cannot move back? */
                                if (!monster_can_enter(ny, nx, &r_info[m_ptr->r_idx], 0))