I thought I fixed that, but I guess not. It happens because the Tank isn't a normal enemy, sorry man... It's trying to hit the tank but the code is telling it not to, so the loop runs forever.
Damn, alright, thanks for the response.
UPDATE: I finished the game today!