Fixed bug with attack.