Enemy delayed action AI

Hi there! I have an idea with a boss fight that I don't really know how to execute.
The thing is, that the boss summons 4 minions throughout the fight, and once they're all taken down, 2 turns must pass for the boss in order to resummon them.
I don't really know how to make this 2 turn delay, so anyone knows how to do it?
BTW, I have Yanfly's plugins, just in case
there are several ways how to do this.

if you want to do this without plugins, you basically need to get tricky with the action pattern.

make a state that does nothing and lasts 2 turns
make troop events for every enemy to react to their death, counting if all died and if yes apply that state

give the boss an action pattern conditioned on that state that has no summoning skill, and one not conditioned on the state that has the summoning skill.

when the state leaves, the summoning skill becomes available.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-delayed-action-ai.145894/