AITA for how I reacted 
I feel like my boyfriend will put everything before me.
My boyfriend and I have been together for 2.5 years, we work shift work and live about 45 minutes away so we have limited time to spend together. He came over to stay the night after work on Tuesday, knowing I would have to be at work at 11:30am on Wednesday. I asked him if he wouldn’t mind coming to my place as I had 2 double shifts in a row. 
Unfortunately on Tuesday night I was up all night with the flu, barely slept in the same bed, taking up residence on the couch not wanting to wake him when I ran to the bathroom to vomit. 
Eventually he woke up and found me on the couch and sat with me for a bit, then went and got me some fluids, and went home. He had the next two days off and I know he needed to get some work done (he is doing an online course). I asked him at that time can he come over on Thursday if I’m feeling better “he said maybe if it will make you feel better”, so he spends the day doing work then goes out for wings with some friends and they play board games at night. 
He messages me at 11:30pm when he is about to sleep and again I ask if he can come over the next day. Again he says maybe he can do it. 
Flash toward to today, I’m feeling a bit better but not 100% so I ask him if when he is done his school work if he will come over.
He says he wants to watch baseball at 3pm, I tell him he can watch that at my house with me! And he can bring his work over for after(I have class work I need to do as well) he says he won’t get any work done. And his whole plan was to do school work and watch baseball. At this point I’m a little upset and I ask him, where was this plan when I was asking you yesterday, if you’d come over.
His response was “it was his plan and he didn’t communicate that to me like he should have” 
Now I’m pretty upset, I feel like baseball, is taking priority over me. I rarely ask him to put other things before myself, and I know school work is important. But it feels like he is willing to sacrifice his schoolwork for things he wants. I am also frustrated because when I asked him why he didn’t tell me this was his plan from the get go if it was “all along” and he said it’s cause I would have been mad at him yesterday. 
He is known to be horrible at communicating about things and he have run into this problem numerous times. In the messages he tells me to leave him alone numerous times, and swears at me.
I do not reciprocate swearing or telling him to leave me alone.
Now he is trying to back track saying I don’t want him to do his work, when I initially asked him to come over when he was done his work, and he was the one saying he was watching baseball.
This isn’t the first time something like this has happened.
Am I the Asshole for feeling upset about being a priority and lack of communication? 
