OSDN Git Service

ペットのモンスターが変身しても親モンスターと名前を維持するように変更.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 29 Jul 2004 12:49:37 +0000 (12:49 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 29 Jul 2004 12:49:37 +0000 (12:49 +0000)
src/spells3.c

index bf4bf2d..d54f750 100644 (file)
@@ -5484,6 +5484,9 @@ bool polymorph_monster(int y, int x)
                /* Create a new monster (no groups) */
                if (place_monster_aux(0, y, x, new_r_idx, mode))
                {
+                       m_list[hack_m_idx_ii].nickname = back_m.nickname;
+                       m_list[hack_m_idx_ii].parent_m_idx = back_m.parent_m_idx;
+
                        /* Success */
                        polymorphed = TRUE;
                }