What is magic defense for? and defense
Is it possible to check the stats while fighting the monster I need to test because I don't think my Skils is working
None of those parameters are "for" anything unless you reference them in the damage formula of a skill.
Their parameters will be whatever value you typed into the database unless you're modifying them with a debuff or something.
If you want to visually check it, you could put into the damage formula console.log("Magic defense is ", b.mdf, " Defense is ", b.def);
Then during the game, press F12 and go to the Console tab and see what it says when you use the skill.
Is there a particular reason you've posted the console output?
That is quite clearly two activations, unless you've put two console log lines in the same skill formula. You haven't shown us the skill itself so I can't say one way or the other yet.
What is the log output even meant to be checking?
additiopnally you have a typo if I see the screenshots correctly.
different commands are seperated by ; and not by , as you're using