How can you tell whether a skill is magical or physical?

Is there a code to tell if the skill's damage is magical trait or physical?  What would that be?  It's for a formula that gives you different results depending on the type of damage done.
I think down near the bottom of the skill window there is a box that says "skill type."  From there you can decide of the skill is physical or magical.
Yeah, I know that....  but what's the code to call if you want to put into a into a JS formula?  Like a.atk but a physical/magical call.


I'm really looking for something that will tell me if the damage made is magical damage as opposed to physical damage.


It's for Yanfly's EnhanceTP Plugin...  I want to make a mode that will raise the TP only when you use a spell and another mode that will only raise with an attack...  but I can't tell which is which in the formula.
I didn't looked into that plugin, but I guess it takes place inside the Game_Action.


And in there is a function called isPhysical() and isMagical().

Original thread: https://forums.rpgmakerweb.com/threads/how-can-you-tell-whether-a-skill-is-magical-or-physical.55667/