OSDN Git Service

増殖するモンスターがクローンだった場合は新しいモンスターもクローンと
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 31 Aug 2003 10:57:13 +0000 (10:57 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 31 Aug 2003 10:57:13 +0000 (10:57 +0000)
なるように修正.

src/monster2.c

index fbca473..9bba056 100644 (file)
@@ -4078,7 +4078,8 @@ bool multiply_monster(int m_idx, bool clone, u32b mode)
        if (!place_monster_aux(m_idx, y, x, m_ptr->r_idx, (mode | PM_NO_KAGE)))
                return FALSE;
 
-       if (clone)
+       /* Hack -- Transfer "clone" flag */
+       if (clone || (m_ptr->smart & SM_CLONED))
        {
                m_list[hack_m_idx_ii].smart |= SM_CLONED;
                m_list[hack_m_idx_ii].mflag2 |= MFLAG2_NOPET;