HELP Kelvintaph Crusader

Do you think this is OK?
‘’’

            if 'Oni'.health > 0:
            elif 'Oni'.health <= 0:
                elif 'Rusty':
                elif 'Skully':

Possible way to command and fight by name, no strings used:
Run this code:

friends = hero.findFriends()
myFriends = []
for i in range(len(friends)):
    myFriends.append("\n" + friends[i].id + " = friends[" + i + "]")
console.log("\nmyFriends = \n" + myFriends)

enemies = hero.findEnemies()
myEnemies = []
for i in range(len(enemies)):
    myEnemies.append("\n" + enemies[i].id + " = enemies[" + i + "]")
console.log("\nmyEnemies = \n" + myEnemies)

Go to the console output:


Copy the code you want to use and format it as needed.