Skill that checks for Guarding?

I would like to make a skill that deals all of the target's HP if they are not guarding, and only deal half HP if they are, but I have no idea how.
Wouldn't b.hp in the damage formula do that automatically for both cases? By default, guarding cuts the damage by 50% unless you've tinkered with the guard rate on your characters.
Wouldn't b.hp in the damage formula do that automatically for both cases? By default, guarding cuts the damage by 50% unless you've tinkered with the guard rate on your characters.

I'm not too sure, but I can try it.

Original thread: https://forums.rpgmakerweb.com/threads/skill-that-checks-for-guarding.63460/