When killing rock slugs, the script can sometimes click the salt again after it has already salted and get stuck in an infinite loop. seen here: https://gyazo.com/b58d49f42dc275c7f60e9b0c75f8f26c . I believe it thinks it missed the original salt and goes to click it again, but by that point the original rock slug has already died.