MV [Solved] Trying to Hide the 'Guard' command depending on the weapon(s) equipped

Hello fellow game makers!
I am attempting to use Actor Battle Commands plugin by HimeWorks to hide my guard skill when I'm using 2-handed weapons. The issue I'm having is that the hide command is a script, and not a notetag, and I am unsure of how to make this happen the way I want it. I am open to new/different ways to accomplish this, as well as other plugins. I have access to all Yanfly plugins already.
Depends on how you're doing "2-handed weapons," as there's not technically any such thing in default MV.

Some games have a Shield equipment slot and indicate 2-handed by having the weapon seal the Shield slot, but other games use other methods.

If you describe how you're doing that, the script to reference it is pretty straightforward.
Depends on how you're doing "2-handed weapons," as there's not technically any such thing in default MV.

Some games have a Shield equipment slot and indicate 2-handed by having the weapon seal the Shield slot, but other games use other methods.

If you describe how you're doing that, the script to reference it is pretty straightforward.
Hello! You're always saving me, so thank you again. I am just making a weapon and sealing the Shield equip slot, as you described. Here's a screenshot if you need it.
Spoiler
1645127367907.png
I am just making a weapon and sealing the Shield equip slot, as you described.
So you'll show the Guard command if the Shield slot is not sealed.
Code:
<battle command>
    symbol: "guard",
    isEnabled: "!a.isEquipTypeSealed(ID)",
    isVisible: "!a.isEquipTypeSealed(ID)"
</battle command>

where ID is the number under Equipment Types in the Types tab of your database.
So you'll show the Guard command if the Shield slot is not sealed.
Code:
<battle command>
    symbol: "guard",
    isEnabled: "!a.isEquipTypeSealed(ID)",
    isVisible: "!a.isEquipTypeSealed(ID)"
</battle command>

where ID is the number under Equipment Types in the Types tab of your database.
Worked wonderfully! Thank you!

Edit: @ATT_Turan it's not working all of the sudden? It worked the first time I tested it. Then I went to test something else (totally unrelated - didn't even change anything, just testing) and it stopped working. I also tried with "prepare" instead of "guard" which is what I renamed it in the Terms tab.
Spoiler
1645137949177.png

1645138023086.png

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-trying-to-hide-the-guard-command-depending-on-the-weapon-s-equipped.145032/