MV How to make a state based on how many enemies remain?

Please help on how to make a state based on how many enemies remaining ?

for example :
There are 1 Boss and 4 minions, the boss has an "ATK UP" aura that cannot be removed but it can be minimalized by killing the minions.
when each minion is defeated the state effectiveness is reduced by 25%.

I'm thinking of using YEP_Buff States Core and YEP_Aura or maybe is it possible through eventing?

Cheers
Ed
you might create a state with "taunt" when teh boss apply the buff,
because you cannot attack the enemy if other enemies has "taunt"
on them.

if that goes through notetag, so you might also be able to "respawn"
the enemies with taunt or around this?

but there might be a count for enemies, but I dont know much about
lunatic code.
simple make a troop event for each minion that fires off when that minion dies and checks and changes the state on the boss.
I think it could be done with eventing by using adding/removing states when each minion HP's is 0%, the general tactic for this boss is to kill off the minions as fast as possible, otherwise the players will be overwhelmed.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-state-based-on-how-many-enemies-remain.138395/