fixed problem where would attack even when dead