Anyway, you were right.
first/second-person singular imperfect indicative of avoir
Practice speaking and memorizing "avais" and many other words and sentences in French.