link to game with bug
Hello everyone, I know this game isn’t played a lot (or maybe not at all anymore), so if you want to see what it is you can click on the link.
There is a bug in the game, and this is what it is.
When you are playing as team red, you can use code like this:
enemies = hero.findEnemies()
for enemy in enemies:
if enemy and enemy.type == "archer":
hero.cast("fireball", enemy.pos.x, enemy.pos.y)
and it works just fine. However, this type of code doesn’t work when you are team blue. Instead, it casts a fireball at the inverse x, inverse y of the enemy’s actual position… I think? It’s confusing, and all I know is that it works but casts a fireball at the wrong place.
If no one is able to fix this, then could someone help me figure out a way to cast a fireball at the correct position? e.g.
hero.cast("fireball", enemy.pos.x / 2 + 10, enemy.pos.y / 2 - 10)
Any help would be appreciated