MV How to temporary disable an actor shadow

I am looking for a way to make an actor invisible when is affected by a state, what I did is simply change the sprite for a blank one, the problem is the shadow still there.

Is there any plugin, event or script to make a single actor shadow disabled temporary?
Hello, this is the method that update the actor shadows in sprite.js:
Code:
Sprite_Actor.prototype.updateShadow = function() {
    this._shadowSprite.visible = !!this._actor;
};
You could copy the method in a plugin and add a condition to check if the actor is not affected by the invisble state, like:
Code:
Sprite_Actor.prototype.updateShadow = function() {
    this._shadowSprite.visible = !!this._actor && !this._actor.isStateAffected(X);
};

Regards
It's perfect,

Thank you so much!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/how-to-temporary-disable-an-actor-shadow.150633/