Mobs not registering children in instanced worlds
Summary
I have a mob that acts as a spawner that I use for my dungeons, on spawn it runs a skill that spawns a random mob from a list, it also has an onTick skill, which ticks to a condition that the mob has 0 children, which would mean the mob it spawned has died. On the skills firing the mob would suicide. This is the intended behavior, though in instanced worlds (Mythic Dungeons, and my Expeditions Plugin) whenever this same mob is spawned, an error is fired into console, the summon works correctly BUT the mob suicides despite having alive children.
https://pastebin.com/dtTypazu - Summoning Mob File
https://pastebin.com/d9iEE8nt - Summoned Mob File https://pastebin.com/jdMXMMqy - Summoned Mob Skill File
https://pastebin.com/PS584i6F - Summoning Skill File (1/2) https://pastebin.com/mszgFYiw - Summoning Skill File (2/2) (This is the list of mobs that can be summoned)
Steps to reproduce
Intended Behavior: (1) Run /spawnmythicmob dspawner-main-depths in an NORMAL WORLD (2) The mob shouldn't die (dspawner-main-depths) (It's invisible, can check through /mm mobs listactive)
Current Behavior: (1) Run /spawnmythicmob dspawner-main-depths in an INSTANCED WORLD (Mythic Dungeons instance preferably) (2) The mob shouldn't die (dspawner-main-depths) BUT it will (It's invisible, can check through /mm mobs listactive)
Server log file
(Ignore MythicDungeon Error Line 3817 and down thats unrelated and was user error)
Debug log snippet
Proposed fixes
Something with children being correctly registered in instanced worlds I guess