How to seal off-hand weapon?

I have a class that can either dual-wield one-handed guns or use a single two-handed bow. I have a script that makes the two-handed bows only equip to the main hand, and I've assigned "Dual-wield" flag to the guns themselves instead of the class to enforce the Bows being two-handed, but equipping a bow doesn't automatically unequip the off-hand equipped gun if that's what the player was holding before equipping the bow like it should. "Seal Equip" Shields doesn't seem to work for dual-wielding. What am I doing wrong?
bump
Seal Equip: Shield probably isn't working because the "Shield" slot isn't technically being used in this instance. Like, an actor that duel-wields has two "Weapon" slots instead of a "Weapon" slot and a "Shield" slot, I think?

What may have to happen is a method to force-remove guns in the off-hand slot when equipping bows. The thought in my head is that you'd check the on-hand slot for the weapon type, and remove and disable equipment in the off-hand slot if the weapon in the primary hand has the "Bow" type.

Not that I have any additional specifics to relay right now, but, that's the general idea.
What am I doing wrong?
Nothing.

The weapon with Dual Wield turns the Shield slot into a Weapon slot, so Seal Shield does nothing. As the other guy stated, you will also need to remove whatever was in the second Weapon slot, since that weapon will also have the Dual Wield feature on it and thus will keep the slot changed as a Weapon slot instead of being a Shield slot.

Since you are running a script to ensure the two-handed weapon goes onto the main Weapon slot, you could use a script like this to strip the offhand weapon on equipping to the main hand:
Ruby:
class Game_Actor < Game_Battler

  def change_equip(slot_id, item)
    return unless trade_item_with_party(item, equips[slot_id])
    return if item && equip_slots[slot_id] != item.etype_id
    if slot_id == 0 && @equips[1].object.is_a?(RPG::Weapon)
      $game_party.gain_item(@equips[1].object, 1)
      @equips[1].object = nil
    end
    @equips[slot_id].object = item
    refresh
  end

end
But I have a feeling this might likely clash with the script you're using to force the weapon onto the main slot. You would need to have someone take a look at and be able to work around the script you're using to provide a proper solution.

EDIT:
Well, I suppose you could also just hack the Dual Wield check to fail if it detects a Seal Shield feature, that might be a more direct method.
Ruby:
class Game_BattlerBase 
  #--------------------------------------------------------------------------
  # * Determine if Dual Wield
  #--------------------------------------------------------------------------
  def dual_wield?
    slot_type == 1 && !equip_type_sealed?(1)
  end
end
It would block you from equipping any Seal Shield weapon in the offhand slot and will automatically purge whatever was in the offhand when you put it in the main slot.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-seal-off-hand-weapon.116434/