summaryrefslogtreecommitdiff
path: root/src/map/mob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.cpp')
-rw-r--r--src/map/mob.cpp5
1 files changed, 1 insertions, 4 deletions
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<block_list> 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<mob_data> 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()];