Damage step calculations

When calculating the damage, it seems that all damage is calculated using the base which is determined from stats.
So from my character's stats alone, I deal 90 damage without any variance.
Then I have an amplifier for the element fire of 40%. 40% of 90 is 36 so it deals 126 to an enemy.
BUT. If the enemy is weak to fire it deals 216. Which is because it's 200% of 90 which is 180, then adding the amplifier which is 36 making it 216. I want the weakness to be applied after the element amplification so that it should deal 252, 126 * 200%.
I have Yanfly's Damage Core which allows for the altering of damage steps and I have tried moving things around but I can't figure out what I have to edit to make this happen.
Any help is appreciated.
Then I have an amplifier for the element fire of 40%
and is that from Yanflys element core? or is it some other setup?
if it is Yanfly's element core, did you try using magnify instead of amplify?
Oh, that seems to have solved the issue!
Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/damage-step-calculations.180830/