I want to display an animation when it is damaged in state.

One monster starts combat with a special state.
As long as this state is present, monsters are not damaged.
In order to remove the state, it can only be removed by attacking a specific actor.

At this point, if you are attacked by an actor other than a specific actor, you want to display a specific animation.
Also, I want to display an animation when the state is released due to a specific actor attack.

In the second case, it can be made similar to the state when the state is removed from the battle event, but this is a bit different from what I want.

Original thread: https://forums.rpgmakerweb.com/threads/i-want-to-display-an-animation-when-it-is-damaged-in-state.121650/