Auto-translated
To identify the targets, you need to check their type.
If you follow Faelan's specialization, you should start by iterating through all enemies, finding the creature with the lowest level, and then attacking it.
And in ATB, there's no way to restore the previous position.
What if you attack the first unit in the array? How is the array created after `getCreatures`? Does it have its own sorting? Or at least, what system does it use to number the creatures in the enemy army?
Whatever