Stuck on Noble Scarifies Please Help

Hi,

I’ve got a problem with the “friends” . They always moving out of there positions to the monster leading me failing to lure the monster to the enemy base.

My codes -
points = []
points[0] = {“x”: 90, “y”: 52}
points[1] = {“x”: 51, “y”: 53}
points[2] = {“x”: 51, “y”: 73}
points[3] = {“x”: 13, “y”: 73}
while self.gold < 80:
item = self.findNearest(self.findItems())
x = item.pos.x
y = item.pos.y
self.moveXY(x, y)
for i in range(4):
self.summon(“soldier”)
loop:
friends = self.findFriends()
for j in range(len(friends)):
point = points[j]
friend = friends[j]
enemy = friend.findNearestEnemy()
if enemy:
self.shield()
if friend:
self.command(friend, “move”, point)

You don`t need these lines, your friends must die …

enemy = friend.findNearestEnemy()
if enemy:
self.shield()
if friend: