MZ MZ Stop SV battler victory loop animation

Hey there!

I having trouble, I can't figure it out... I'm just trying to stop the loop in the victory animation..
I want my character to do the animation, from frames 1 through 3 and then just stop on 3, instead of going back to 1 and back again.

I'm using VisuStella Battle Core and Victory Aftermath plugins, not sure if there was an option in there but I haven't seen anything like that.
I've tried going into rmmz.sprites and searching for Sprite_Actor.prototype.updateMotionCount = function() {
then changing the else if section to
} else if (this._pattern = 13) {
this._pattern = (this._pattern + 1) % 4;

but this doesnt seem to work like i want it to. Any help is really appreciated.
bump
bump
It is recommended to effect code changes with plugins, rather than editing the core scripts directly. Plugins load after the core scripts and can redefine existing methods. Plugins make code edits much easier to track, enable/disable, and transfer (e.g. if you update your project's core scripts).

You can set the loop flag of the "victory" motion to false to stop it looping. However, then you also have to stop the engine from automatically reverting to the "wait" motion once "victory" has completed. I'm guessing that complication is why you haven't got an answer yet. 😅

I just wrote/tested this little plugin and it seemed to work OK:
Remember to save your project to apply Plugin Manager changes before testing! 👋

Full code in spoiler below (just in case)~
Spoiler: Full plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc No loop for victory motion.
 * @author Caethyril
 * @help Terms of use: free to use and/or modify for any project.
 */

// Override! Disable loop for victory motion.
Sprite_Actor.MOTIONS.victory.loop = false;

// Alias! Do not start wait motion during battle end phase.
(alias => {
    Sprite_Actor.prototype.startMotion = function(motionType) {
        if (motionType !== 'wait' || BattleManager._phase !== 'battleEnd') {
            alias.apply(this, arguments);
        }
    };
})(Sprite_Actor.prototype.startMotion);
I really appreciate the help on this!
However, what you have there for some reason, just makes them do nothing on victory, like the just stay how they were before victory.
Which means it works to an extent, overwriting the victory loop of the other plugins. So if nothing else, it's a step in the right direction. Thank you!
Ah, yes, you're using VisuStella plugins. In that case I guess you'll have to ask them for support. 😴

Original thread: https://forums.rpgmakerweb.com/threads/mz-stop-sv-battler-victory-loop-animation.139434/