Dueling grounds not working

My wizard in dueling grounds keeps getting stuck. There are a couple of problems. When I try to get in a battle it says there is an infinite loop, so I had to comment out my code to get in. Also,
when I run my code, it has the error message: Unhandled error: Error: You can’t use Hero placeholder’s move method here. it doesn’t tell you where the error is and I don’t even use move in the code at all. My rank is super low because what is submitted as my code is all commented out, and I can’t fix it because when I try to submit my normal code, it can’t run it.

2 Likes

hmm can you paste your code here?

while True:
# Find and attack the enemy inside a loop.
# When you’re done, submit to the multiplayer ladder!
if hero.gold > hero.costOf(“griffin-rider”):
hero.summon(“griffin-rider”)
enemies = hero.findEnemies()
for enemy in enemies:
soldiers = hero.findFriends()
for soldier in soldiers:
if soldier.type == “griffin-rider”:
hero.command(soldier, “attack”, enemy)
if hero.canCast(“summon-undead”):
hero.cast(“summon-undead”)
elif hero.canCast(“poison-cloud”, enemy):
hero.cast(“poison-cloud”, enemy)
elif hero.canCast(“summon-burl”):
hero.cast(“summon-burl”)
elif hero.canCast(“fear”, enemy) and enemy.health > 600:
hero.cast(“fear”, enemy)
elif hero.canCast(“raise-dead”):
hero.cast(“raise-dead”)
elif hero.health < 1000 and hero.canCast(“drain-life”, enemy):
hero.cast(“drain-life”, enemy)
elif hero.canCast(“chain-lightning”, enemy):
hero.cast(“chain-lightning”, enemy)
elif hero.distanceTo(enemy) < 3 and hero.isReady(“devour”):
hero.devour(enemy)
hero.attack(enemy)

Yes, I made a topic for this… Dueling grounds "can't use method" - #28 by moonwatcher348

Can you please format your correctly and not make repeated topics. Thanks. It just helps keep the discourse clean and from cluttering up. But to answer you question, this is happening to me as well. We just have to wait for the bug to get fixed.