It was supposed to have a random chance if the enemy would dodge or not, but I think I messed something up in the randomiser code and some possibilities are very rare.