Changed some stuff in the attack functions