No victory after killing all enemies

HI there, i was working on some minor changes to the core scripts of VX Ace, i modified some to replicate from retro RPGS, everything was fine until when i killed all enemies, it does nothing and the victory doesn't come up. Did i do something wrong?
Well, we don't know what you changed so it could be anything.

Post the changes that you made to the engine so that someone could look into it.

Not really an expert on RGSS but maybe me or someone else could find the issue.
Nevermind, i solved this because there was the :whiten effect on Sprite_Battler which it did have a value of 0.

Original thread: https://forums.rpgmakerweb.com/threads/no-victory-after-killing-all-enemies.47248/