Avoid nil value errors when being attacked