If anyone used this from early today I had a major bug in it that would cause it to fail about 1 time in 3.
Don't ask me how I missed that.
It will now only engage when the mob is close.
I'm working on some auto loot code as well, not that anyone needs this script :)