Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Code Combat: Kelvintaph Glacier: Kelvintaph Defiler

I need help on this and I don’t know what to do(I have no code).

hero.moveXY(32, 4);
while (true) {
    var paladin = hero.findByType("paladin");
    var enemy = hero.command("paladin", "attack", enemy);
    hero.command("paladin", "attack", enemy);
}

It says:“Line 9: ArguementError: command’s arguement minion should have type unit, but got string: “paladin”. #{@id} needs something to command.”

you need much more code, 9 is not enough

Yes but there is an error can you help

sorry but i dont do java

ok thanks anyways though