How to check current target's state?

So I am trying to do an if statement to see if the current target has a specific state. However, I'm wondering how I do that conditional statement. I tried the script call that I saw people used in MV, but it doesn't seem to work in MZ.

The first if statement in my event works, but it is based off of Index and not the current target (not what I want).
The second if statement is my attempt to check the current target, but it never goes into that if statement.
Any help would be greatly appreciated!
Spoiler: screenshot
1602797725771.png
when is the common event processed?

in the past the engine had processed the common events independently and later than the skill processing, you needed a script or plugin to have it executed at the same time.
and that is also the main difference between the two checks that work or not: the first conditional branch is an absolute adressing of enemy #1, while the script command is relative depending on which skill is executed last.

If the index has already shifted to another target, then the check will fail automatically.
when is the common event processed?

in the past the engine had processed the common events independently and later than the skill processing, you needed a script or plugin to have it executed at the same time.
and that is also the main difference between the two checks that work or not: the first conditional branch is an absolute adressing of enemy #1, while the script command is relative depending on which skill is executed last.

If the index has already shifted to another target, then the check will fail automatically.

the common event should be processed as soon as the ability is chosen on the selected target, I would think. Shattering Strike calls the Common Event I have created which should check the state of the target and then proceed with custom combat animation and then process damage.
Spoiler
1602800545614.png
the common event should be processed as soon as
It might seem that way to you, but the RM's from VX to MV never did that. And I don't know how MZ works by default or what you might have changed with plugins.

That is why I posted above - so that you can TEST how it works for MZ instead of only guessing that your assumptions of the process are correct.
Up to MV anytime such a sequence was needed (and no plugin used to override the default) the solution was to check for every enemy to determine which was the target and which had what states before continuing processing. That caused a lot of conditional branches, but was neccessery exactly because the common events were NOT executed together with the skill.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-current-targets-state.128730/