Fixed error when attempting to attack