Fixed another bug when attacking nothing