[SOLVED] sprite hues and conflict with galvs spawn events

-------------------------------------------FIX------------------------------------------

To avoid double posting here is the fix to the script that fhntop from lunatic discord came up with that works!

Spoiler
Code:
var charSprites = SceneManager._scene._spriteset._characterSprites;
var i = charSprites.length - 1;
while (charSprites[i]._character != $gamePlayer) i--;
var playerSprite = charSprites[i];
playerSprite.setColorTone([0, 0, 0, 0]);

--------------------------------ORIGINAL POST--------------------------------

Hey everyone, there was previous post about changing sprite hues and caethyril provided an awesome script call to change hue of a players sprite:

Spoiler
Code:
var tmp = SceneManager._scene._spriteset._characterSprites;
var playerSprite = tmp[tmp.length - 1];
playerSprite.setColorTone([255, 0, 0, 0]);

It works great except for when a galvs spawned event comes into the map. The most recently spawned event will then take all the hue changing.

Galvs Event Spawn:

Video:


I did notice in Galvs plugin there is alot of reference to the same
Code:
.characterSprites
But I'm not sure why it takes away from the script call targeting the player?

Original thread: https://forums.rpgmakerweb.com/threads/solved-sprite-hues-and-conflict-with-galvs-spawn-events.107347/