Vengeance

Is there a way to make a move that only the enemy can use that makes it so that after the enemy's ally gets knock out, the enemy can now use this move.
In the enemy tab you can have it so an enemy only uses that skill when a switch is active. Have a switch activate when an enemy is killed. Then make a parallel common event that runs when the switch is on and inside it have it turn the switch off. Now when if the switch is activated in battle it can be turned off after the battle.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/vengeance.96507/