Can the character see in darkness? If so, then the character should be able to attack.