MV Yep_ItemCore, Yep_AttachAugments & Hime_damageWeapon Compatibility Issue

Hi everyone, I have to make the three plugins written in the title work together, for what I have to do I think I can get around the problem by modifying a part of the Hime plugin:
Code:
if (weapons.length === 0) {     
      return this.evalWeaponDamage($dataWeapons[$.barehandId], target);
    }
    else {
        var total = 0;
        if (!BattleManager.isSecondAttack()) {
            total += this.evalWeaponDamage(weapons[0], target);}     
        else {
            total += this.evalWeaponDamage(weapons[1], target);}
      return total;
    }

Since bare hands work, I thought I'd get around the problem inside the second IF by making sure that instead of going to see the equipped weapon, go to see the ID of the weapon, as for the bare hands. I tried in various ways but always failing, any ideas?

Original thread: https://forums.rpgmakerweb.com/threads/yep_itemcore-yep_attachaugments-hime_damageweapon-compatibility-issue.129311/