My Spells Aren't Working?

This is the second project I made in RPGMaker Mv and even though the first one wasn't good, this means I am decently experienced. I have made two spells and both of them just say "blank took no damage" instead of doing the intended effect. It does play the animation of the spell though. All of the other spells I made work and I have never had this issue before. This is both of the spell's full settings;

Name: Wild Sparks

Damage: HP damage, Variance 20%, a.matk * 2 - b.mdef lightning damage, critical hits: yes

Scope: Four random enemies

MP Cost: 65

TP Cost: 0

Hit Type: Magical Attack

Success: 100%

Speed: 0

Repeat: 1

TP Gain: 0

Animation: Lightning One 1



Name: Purify

Damage: HP recover, Variance 20%, 5 +a.matk light, critical hits: no

Scope: 1 ally

MP Cost: 80

TP Cost: 0

Hit Type: Certain Hit

Effects: Remove State Bleed 100%, Blind 100%, Poison 100%

Success: 100%

Speed: 0

Repeat: 1

TP Gain: 0

Animation: Heal One 1
Uhh, are you using those exact terms for your damage formula? Magic Attack is "a.mat" not "a.matk" and Magic Defense is "b.mdf" not "b.mdef".

Your formula should look like:
JavaScript:
a.mat * 2 - b.mdf

Original thread: https://forums.rpgmakerweb.com/threads/my-spells-arent-working.144486/