Buff magic def skill effect not working?

I have a skill that buff magic def, I put that on the effect tab (Add buff - mag def 3 turns) on skill name. But it seem not working? the magic dmg received still same

Here is the enemy skill formula that used to atk ally that have buff
a.mat * 21 - b.mdf * 5
Based on the information you gave, there are several possible things.
1. low magical defence or high enemy magical attack.
2. low buff due to plugin settings
3. A plugin completely interferes with buffs
4. The ally doesn't receive a buff
Which plugins do you use? Preferably a screenshot.
What is the enemy's matk, the actor's mdef and the skill's variance?
Based on the information you gave, there are several possible things.
1. low magical defence or high enemy magical attack.
2. low buff due to plugin settings
3. A plugin completely interferes with buffs
4. The ally doesn't receive a buff
Which plugins do you use? Preferably a screenshot.
What is the enemy's matk, the actor's mdef and the skill's variance?

I think the problem is on the formula, i noticed the dmg difference but its too small. Is there plugin that can up buff rate? i dont even know how many % buff on default
Yanfly's buffs and states core can up the buff rate. By default the rate is 25%. So when you have 20*a.mat - 5*b.mdf, a 25% buff to mdf is not going to do that much unless the mdf itself is high.
Yanfly's buffs and states core can up the buff rate. By default the rate is 25%. So when you have 20*a.mat - 5*b.mdf, a 25% buff to mdf is not going to do that much unless the mdf itself is high.

hey i want the buff increase the mag def to two times ( 60 to 120 for example)
I use this formula this._buffs[paramId] * 2.0 + 1.0, but i feel like its not two times buff
This would be a three times buff actually.
A two times buff would be this._buffs[paramId] + 1.0.
This would be a three times buff actually.
A two times buff would be this._buffs[paramId] + 1.0.

Well i have 50 mdf and enemy have 30 magic atk. If i use the buff,
30*21 - 5*100(50*2) = 130. But the dmg is still at 180-200. Or is there another hidden calculation?
That means the buff is not working. Which plugins do you use? I'll take a look to see if something may be conflicting with it.
Nvm its working lol, I have to save the game. I guess if you use battletest, it doesnt save the change you made?
It does save.
Might want to check your math. Per your post here:

a.mat * 21 - b.mdf * 5

If you have an MAT of 30 and a MDF of 50, the damage is:

30 * 21 - 50 * 5 = 630 - 250 = 380. If you have variance on (and it defaults to 20%), it can do 20% more than that (or 20% less), so it can do from 304 - 456 damage. If you buff it by 25%, then it becomes (as 25% boost to your MDF is 62.5, I'll use 63 as we can't have partial MDF).

30 * 21 - 63 * 5 = 315. Add in 20% variance, it becomes a damage of 252 - 378.

So it appears to me the problem is either your damage formula (which, honestly, 5 * mdf means a 25% buff is barely going to add anything until your MDF is way up there), or you gave the monster a state which lowers the MAT they are using which is throwing off your calculations.

Original thread: https://forums.rpgmakerweb.com/threads/buff-magic-def-skill-effect-not-working.85424/