What username are you in CodeCombat? You are so pro at coding! I still couldn’t figure out how can detect if someone is teleporting. Can I detect forever throughout my code? Thank you for your explanation. Have a good day!
it works for me when I replace my current anomaly code. Are you putting it in between build commands? When you try to build a tower but don’t have enough mana, the hero will wait until you have enough mana, but it will remain idle and not execute any commands.
Oh, by the way, here’s something I noticed.
If you are having your guards cross the gap when you don’t want them to, try to put a distance cap on what enemies they’ll attack.
Something kind of like: