The script I posted yesterday had a bug that made it ignore hostile teams. I've edited the post to include the corrected code, so you only need to re-download it if you grabbed it before the timestamp on this post. Or you could just hand-edit it: in the if statement that checks for wins, two occurrences of "tm[i]" should both be "ct".