Yanfly's Steal Item + Battle Command List Error

Hi everyone,

So basically, my game uses Yanfly's battle command list and steal item scripts for VX Ace, but I've run into an issue. I have a thief class, and I want it to have snatch as a battle command. However, using it as a battle command causes it to automatically fail every time. I checked just to make sure, and it works just fine if used as a skill in the menu itself. I looked on Yanfly's wordpress and saw that someone else had the same issue, but that was years and years ago now and they didn't ever get a solution.

Does anyone know a way to make it functional?
I went and wrote a compatibility patch. Le me know if you encounter any problems.

Code:
=begin

 * Yanfly Steal Item and Battle Command List compatability add-on

 Allows steal skills to work properly when set as battle commands

=end



class Scene_Battle
 
  def show_steal_window?
    if @item_window.visible
      $game_temp.steal_skill = @item_window.item
    elsif @skill_window.visible
      $game_temp.steal_skill = @skill_window.item
    else
      return false unless $imported["YEA-BattleCommandList"]
      c_symbol = @actor_command_window.current_symbol
      if c_symbol == :use_skill || c_symbol == :use_item
        @status_window.hide
        @actor_command_window.hide
        skill_id = @actor_command_window.current_ext
        $game_temp.steal_skill = $data_skills[skill_id]
      else
        return false
      end
    end
    return false if $game_temp.steal_skill.for_friend?
    return false unless $game_temp.steal_skill.need_selection?
    return $game_temp.steal_skill.steal_type == :snatch
  end
 
  alias hb_hide_status_steal_shsw show_hidden_steal_windows
  def show_hidden_steal_windows
    hb_hide_status_steal_shsw
    return unless $imported["YEA-BattleCommandList"]
    c_symbol = @actor_command_window.current_symbol
    if c_symbol == :use_skill || c_symbol == :use_item
      @status_window.show
      @actor_command_window.show
      @status_aid_window.hide
    end
  end
end
Howard_Bentley, you absolutely are That Guy. This is perfect, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-steal-item-battle-command-list-error.182052/