From 84d2758d2f343d0493eae16adc5e80ebfefb0b14 Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 26 Aug 2019 18:55:44 -0400 Subject: allow summoned mobs to also have slaves --- src/map/mob.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/map/mob.cpp') diff --git a/src/map/mob.cpp b/src/map/mob.cpp index 4c689d9..ea9ec34 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -1863,7 +1863,7 @@ void mob_ai_sub_hard(dumb_ptr bl, tick_t tick) if (((bl = map_id2bl(md->last_master_id)) != nullptr && md->bl_m != bl->bl_m) || (bl = map_id2bl(md->last_master_id)) == nullptr) { md->last_master_id = BlockId(); - md->parent_id = BlockId(); + md->master_id = BlockId(); md->mode = get_mob_db(md->mob_class).mode; md->target_id = BlockId(); md->attacked_id = BlockId(); @@ -3320,9 +3320,6 @@ int mobskill_use(dumb_ptr md, tick_t tick, if (battle_config.mob_skill_use == 0 || md->skilltimer) return 0; - if (md->master_id && md->parent_id) // slaves of summoned mobs - return 0; - for (mob_skill& msii : ms) { tick_t& sdii = md->skilldelayup[&msii - &ms.front()]; -- cgit v1.2.3-70-g09d2