Making a skill deal bonus damage if target suffers from a certain state

I made a special state, and I made a skill that hits harder when target has that special state. Unlike that Paralyze+Scurry story, this one doesn't involve any parameter checking. I want a target to take bonus damage just from having this state on them.

I would to like to know about a least messy variant of pulling this off, and if there's a variant without using any plugins.
Something like this should do the trick:

Spoiler
a.atk * (b.isStateAffected(x) ? 5 : 1)

Change "x" to the state ID.
The 1st number after the "?" is the damage multiplier IF the target does have the state, and the 2nd number after the "?" is the damage multiplier IF the target does not have the state.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-skill-deal-bonus-damage-if-target-suffers-from-a-certain-state.75700/