Transition between this 2 animation

I have one walking and magic attack animation.When i make transition between them my model turns because second animation leg position diffrent than first position.Is there any solution for this:

My first anim is normal direct walking.Second one is https://www.mixamo.com/store/#/search?query=1h%2520magic%2520attack&page=1

Maybe mask out the legs …?

Need to change the lower part

how can i change ?

its not worked