herounitTarget doesn't exist. You want heroTarget, this is why the bot sucked ^_^