damage formulas... and fixing them

hi everyone once again not sure if this is right forum (mostly due to not knowing what goes to which forum when it doesn't fit any of the forum descriptions)


ok i made a spell with this formula


(((a.mat * 6) * (1 + a.mat / a.mdf)) * (1 + a.level / 100))


variance of 10 and set to the star element


now when i use it in battle ageinst an enemy with 120% rate to star and the caster has 136 mat, 116 mdf, and lvl 1 only for some reason deal 94 - 108 damage


only plugins i'm using that could effect are yanfly's damage core, yanfly's armor scaling, and moogle x's element booster (she gets a 130% boost to damage for all star spells she casts) and of the targets i am testing this effect on the highest MDF is 75 thus the highest mag armor is 37.5. (value *= 100 / (100 + armor)) is the formula for magic armor to decrease incoming magic damage..... so i dont get it what did i do wrong in the formula D:
nvm i figured it out..... it was the weapon element boosts....
I will close this, but next time, there is a thread dedicated to damage formula issues, so that would be the correct place to post.  If you need help with a "how do I" question, it would go into the relevant Support forum for that engine.  Game mechanics design is for discussion of design, not implementation.  Also, please don't double post - just edit your original post or report it and ask for a mod to close it as you solved it yourself.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formulas-and-fixing-them.58538/