Remove red flash from state

Hello!

I thought this would be an easy fix, but I can't seem to find it.

Is there a plugin or way to remove the red flash when you're walking around with a negative health regeneration state (like poison)?

Thank you!
In ACE It was under Game_Battler, function execute_Floor_damage. There was a check there to do an effect if the damage was > 0.

I imagine in MZ you are looking for something similar. But I'd start with the Game_Battler code and look for the execute_floor_damage or similar function.
Seems like it's caused by $gameScreen.startFlashForDamage(); so you could comment it out but that would stop it from flashing when walking on a damage floor too. Paste in a new plugin file

Code:
Game_Actor.prototype.performMapDamage = function() {
    if (!$gameParty.inBattle()) {
       // $gameScreen.startFlashForDamage();
    }

};

Better yet, comment it out here if you want to keep the flash for the floor damage:
Code:
Game_Actor.prototype.turnEndOnMap = function() {
    if ($gameParty.steps() % this.stepsForTurn() === 0) {
        this.onTurnEnd();
        if (this.result().hpDamage > 0) {
           // this.performMapDamage();
        }
    }
};
Thank you both!

Let me try that code and see if it works!
It's actually for MV so dunno if it works in MZ or not.
Hmm, doesn't seem to work. I should be putting this is in the comment section of the state, correct?
You paste it in a new plugin file. It's an overwrite on the core engine functions.
Oh, aha, yes. Of course, lol.

Works like a charm, thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/remove-red-flash-from-state.170275/