Under perform a Windows function to display window.
I would use Show, instead of Normal. For me, Normal always takes the window out of maximize mode.
I had a similar problem, and unchecking Set command to target this window solved it for me.
You could also put a little delay, and then check if the Active windows is correct, and if not, display window again, Like this.
Display window 'League of Legends' as [Show]
Pause 0.5 seconds
Begin Text Compare : [{ACTIVEWINDOWTITLE}] Does Not Equal 'League of Legends'
Display window 'League of Legends' as [Show]
End Condition
Move mouse to x, y
Pause 0.5 seconds
Left Click