Boss star fails

My hero does not seem to recognize paladins. Here is my code:

# Fight your way into the Inner Sanctum of the ogre chieftain, and kill her.
'''
catapults=self.findByType("catapult")
allies=self.findFriends()
friend=self.findByType("soldier")
soldier1=friend[0]
for friend in allies:
    if friend:
        self.command(friend, "defend", friend.pos)
loop:
    if self.gold>=20:
        self.summon("soldier")
    for paladin in self.findByType("paladin"):
        self.command(paladin, "move", self.pos)
        if paladin.canCast("heal", self) and self.maxHealth-self.health>100:
            self.command(paladin, "cast","heal", self)
    if catapults[0]:
        self.command(soldier1,"attack",catapults[0])
    enemies = self.findEnemies()
    enemy = self.findNearest(enemies)
    if enemy and enemy.type != "door":
        self.attack(enemy)
'''
soldiers=self.findByType("soldier")    
loop:
    catapults=self.findByType("catapult")
    allies=self.findFriends()
    if catapults[0]:
        for soldier in soldiers:
            self.command(soldier,"attack",catapults[0])
    self.move(self.pos)
    if catapults=="[]":
        break
self.moveXY(96, 36)
targets = self.findByType("door")
target=self.findNearest(targets)
palnum=0
while palnum<=2:
    if self.gold>=self.costOf("paladin"):
        self.summon("paladin")
        palnum+=1
while self.health<self.maxHealth:
    for paladin in self.findByType("paladin"):
        if paladin.isReady("heal"):
            self.command(paladin, "cast", heal, self)
while target.health>0:
    self.attack(target)


Sorry, solved it. Why on how to use boss star…

I guess you mean:

You should have the Boss Star III when playing Summit’s Gate, so you can’t summon paladins yet.