MV Ramza_DualWield Plugin Dual-wielding Weapon-specific Skills / JavaScript Assistance (CLOSED)

So, my previously working weapon-specific skills are no longer work with the addition of the Ramza_DualWield plugin and "off-hand" weapons added under "types." I'm still using YEP_Skillcore as well. I know "offhand" is affecting it, but not sure which part of my custom JavaScript (courtesy of Ramza) needs to be tweaked to fix the skill.

The Long-short of it is, the skill should work only when the main hand and offhand weapon of the same type is equipped. Adding the screenshots, skill notes, and link to an old post in case needed.

Ramza, any help would be appreciated! Thanks! 🙂

<Dual Wield Skill>

<Custom Show Eval>
var wpnType1 = (user.equips()[0]) ? user.equips()[0].wtypeId : 0
var wpnType2 = (user.equips()[1]) ? user.equips()[1].wtypeId : 0
if (wpnType1 == wpnType2 && wpnType1 == 9) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>

Please close, I moved to Ramza's Megathread. Thank you!

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/ramza_dualwield-plugin-dual-wielding-weapon-specific-skills-javascript-assistance-closed.138378/