I don't have enough gems

show me ur vector subtract line

You want the code?
code:

def findEnemyHero():
    enemyHero = None
    bestHealth = 0
    for enemy in hero.findEnemies():
        if enemy.maxHealth > bestHealth:
            bestHealth = enemy.health
            enemyHero = enemy
    return enemyHero
def onSpawn():
    while True:
        pet.moveXY(51, 33)
        pet.shapeShift()
pet.on("spawn", onSpawn)
while True:
    if self.canCast("earthskin"):
        self.cast("earthskin", self)
    if self.isReady("heal") and self.health < self.maxHealth:
        hero.heal(self)
    enemy = self.findNearestEnemy()
    if enemy and enemy.type != 'sand-yak':
        self.scattershot(enemy)
        if self.canCast("chain-lightning"):
            self.cast("chain-lightning", enemy)
    for friend in self.findFriends():
        if friend.type!='fake-peasant' and friend.type!='paladin':
            self.command(friend, "defend", self)
        else:
            if friend.type == 'paladin':
                enemyHero = findEnemyHero()
                hero.command(friend,"move", Vector.subtract(hero.pos,enemyHero.pos))
                self.command(friend, "shield")
                if friend.canCast('heal'):
                    self.command(friend, "cast",'heal' ,self)
    if self.gold >= 80:
        self.summon("paladin")

simple fix

if friend.type == 'paladin':
                enemyHero = findEnemyHero()
                if enemyHero:
                    hero.command(friend,"move", Vector.subtract(hero.pos,enemyHero.pos))
                self.command(friend, "shield")

No errors now, but


My score became low. :sob:

idk than

I CALL ON THE MIGHTY WARLOCK @PeterPalov

In CodeCombat you should never do 2 commands in a row. Otherwise, it won’t work
P.S. I have different Vectors and commanding

Senick can wall of darkness!!! :laughing:
I’d like to try some abilities that Ritic have

Yes, in behind the darkness, any hero has Ritic’s abilities, I had some fun with Zana >:D

1 Like

btw, op heros in each duel are (from my expirence)
HARROWLANDS: senick and okar
dueling grounds, ritic , senick, nalfar and okar
treasure blah blah thing in the forest: zana

1 Like

Zana and Pender

2 Likes

Hey, guys, can i earn gems without simulating games?
Cuz if i simulate games, my computer will burn lol

doing lvls, and 1 more thing buying gems from the hypixel store store.hypixel.net jk the hypixel thing is for skyblock gems not codecombat gems

just do more brawls

this?

No, i can’t , there are too many infinity loops

yea, whenu do buy gems if u play hypixel, make sure to use Code RageTrain, also use ign enderlord7389 (jk dont use ign enderlord7389, thats my ign)

Nonono, do i need to pay?

i don’t play hypixel

than dont use it ok?