Thank you all for the help, I been working on using the phases for the boss for a bit now but I was wondering how others would do it. It gives me ideas on how to make the boss more dynamic.
Currently my boss is set up using animations to control when it changes it phases. This makes the phase take the same amount of time each time it goes into it which can make it easier for the player to predict the boss and fight against it. Something I did is make it where the boss has a default phase I call Phase0 and after each phase the boss goes into phase0.
Phase0 is the phase that controls which phase it goes into next. What I want to do is make it where it cannot go into the same phase it was in before it went back to Phase0.
So an example would be
0,1,0,2,0,1,0,3
0 is the default phase and 1-3 are the other phases.
an example of what I dont want it
0,1,0,1,0,1,0,3
I do not want the boss to be able to keep repeating the same phase over and over again. This way it makes it more likely the player will see more of the bosses phases and keeps switching up what it is doing.