MV Help with Shaz' Actor Stepping Animation

Heyho!
I use this Plugin by @Shaz to give some actors a constant stepping animation. However it seems to prevent me from giving the player a temporary stepping animation, even if I don't use the notetag on their actor. Normally, if I use a Move Route Command to set the player's stepping animation to On it stays this way until I turn it off again. But with this plugin activated, it seems to be turned off immediately.
Since it is a kinda small plugin and also for free I hoped someone with coding knowledge would be so kind to help me out^^
Thanks in advance 🙂
Well, can you just check for the notetag already in the if conditional? [CHECK EDIT BELOW]

Like change:
if ($gameParty.leader())
to
if ($gameParty.leader() && $gameParty.leader().actor().meta.stepanim)

and

if (this.actor())
to
if (this.actor() && this.actor().actor().meta.stepanim)

EDIT:
The above causes problems with the steppings when changing formations. It should be easy(?) to fix, but I don't have the energy LOL. Hopefully someone else will help you.
Uuuh nice 😀 Worked, thank you!
But like I said (edited) it doesn't work properly! 😀

That only works if you have the actor without the notetag as your party leader and you don't change the formation, I think.
I don't allow changing the formation anyway, because this would mess with several other parts of our game. So I'm fine with your solution 🙂 Still I'd encourage anyone who has the time and knowledge to fix this to do so, in case anyone else comes here with the same problem.

Anyway thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-shaz-actor-stepping-animation.175394/