Oh, in that case, if Player on Wall… Do A.B.C Version 1. IF Player on Ground… Do A,B,C Version 2.
Perhaps the difference between the versions is merely increasing/decreasing speed of attack execution inversely proportional to the player speed?
Not certain how far the AI Rabbit Hole you want to go, but Utility AI comes to mind.