Damage formulas for state boosts?

how would I do a damage formula for something like "If an enemy is paralyzed, this skill deals double the original damage"

I remember a formula for VX Ace existed but when I tried to import it, the skill did WAY TOO MUCH and the state wasn't even applied yet, the formula for vx ace originally did 186-371 without the state but when state was applied, it did 456-865. But when used in MV it did over 80,000 without the boost, I didn't change anything it just acted weird, what should I do for the MV version?
You need to use something like this:

Code:
b.isStateAffected(Id of Paralysis state) ? Damage formula * 2 : Damage formula;

For further fun stuff to do with the formula box, give this thread a read: https://forums.rpgmakerweb.com/index.php?threads/damage-formulas-101.81905/

Original thread: https://forums.rpgmakerweb.com/threads/damage-formulas-for-state-boosts.94566/