I just finished yet another solo playthrough of Final Fantasy Legend (aka SaGa 1). If the name sounds familiar, it's because I have mentioned the game being buggy, with some mechanics being the reverse of what the developer intended.
There is one interesting feature of the game that I want to mention. In this game, almost every item (including weapons) or ability has a limited number of uses. (Abilities recover at the inn, but for items you need to either get new ones or use an item that only appears near the end of the game.) It turns out that the game keeps track of the number of uses enemies have remaining in their abilities. When an enemy runs out of an ability, it stops using that ability and uses other abilities instead.
For example, if an enemy has FLARE (which has 3 uses), the enemy will only use it 3 times during the entire battle. Once FLARE runs out of uses, the enemy will only use other attacks.
What happens if the enemy has no abilities left? If it is a random battle, the enemy runs away. If it is not, then the enemy is defeated. (There's one instance where a boss appears as a random enemy. If it runs out of uses, it runs away, but the boss death animation is seen.)