First, when my hero is about to attack, I sometimes see this ^ graphical glitch appear. Not sure why my hero looks like that, but it’s not game-breaking so I’ll ignore it.
The real problem is that for some reason, I’m now experiencing what appears to be a game-breaking bug where I write an attack loop for my hero and the hero just pauses after a few attacks instead of fighting the next enemy. This has already shown up in the Sarven Shepherd level preventing me from progressing. I thought it might be specific to that level so I tried Cavern Survival and got the same problem.
I’ve tried it in Chrome and Firefox and gotten the same results.
The code is in Lua (I haven’t tried changing that yet).
My code should be fine (as far as I can tell):
i = 1 loop enemies = self:findEnemies() while i < #enemies do if self:distanceTo(enemies[i]) < 15 then if enemies[i].type = "munchkin" then self:attack(enemies[i]) elseif enemies[i].type = "door" then self:attack(enemies[i]) else self:say(enemies[i].type) end end i = i+1 end end
If anyone has any suggestions of what might be the problem or what I should try next I would appreciate it.