Not random, all troops target cc and heroes when aggroed. Do you even play this game? She went after the king like her ai is supposed to.
Also the queen was dropped far too late, if you want her to break more stuff consider using her properly.
I will say it again since you seem to be struggling.
There were three witches, two went with queen so they only support what i said and can be ignored.
What is of note is the third witch, because she was spawning skels she didnt chance the king with everyone else, as she prohably resets target when that happens, similar to why the new born skels didnt chase king. As the king jad already finished attacking and went back, there was no reason for the third witch to follow until the king attacked again.
Even if that wasnt the case another explanation is due to the queens range she can be aggroed from further away, which could he why she chased king and the slightly closer witch didnt.
None of this matters in the grand scheme of things however, as your initial query of why the queen went in that direction and why she attacked the wall has already been answered. Or are we just talking about witch ai now?
You still saying "all troops target cc and heroes when aggroed" is true? If all troops target the cc and heroes when aggroed then every deployed troop would head to that direction...
To support what your saying, show me proof where Supercell have stated that this is the case... To me the video shows that the AQ AI had a random moment and even if the AQ did go for the King, why did she head downwards and not towards to King? and then she turned around to shoot a wall when the King was coming towards her? She also had to finish off that wall before attacking the King, so the priority was lost already...
I obviously meant all troops that have a target of any, and was referring to your troops being aggroed, the distance of this is unknown but is known to be quite far.
In the video, as i hage already said, there was no random moment in the queens ai. She had to break the wall to get to the king so she started to hit the wall. There is a lag before she switches targets again and in this case she broke the wall during that lag, this is quite common.
What do you mean by head downwards? She was clearly going for the king from the beginning, king went beyong the wall so the queen hit the wall to get to ghe other side. What would you want to happen exactly? For the queen to just not hit the wall and try to run through it?
She was heading downwards towards teslas rather than going towards the King, then the King came back and she turned back to shoot a wall. Supersteve already confirmed there is a randomizer system for the troops and I would think that its this, that needs adjusting for the heroes...