Himeworks command manager and himeworks draw script problem

Simply put, Hime made several scripts recreating the magic system from Final Fantasy 8 (draining magic from enemies, selecting the "draw" skill, choosing available magic from the list, and taking some for yourself) - they work more or less as expected.

My problem is that "draw" is a skill available in the skill menu, but I want to make it accessible from the standard battle menu—the same as "attack/magic/defense/item" in battle. This makes it easy to create with another Hime script (Command Manager) and it usually woks perfectly but nit with this. But for some reason, if I assign the "draw" skill to a command, it doesn't work as expected—the menu for selecting magic from an enemy doesn't appear.

Here's a link to the command manager - https://himeworks.com/redirect.php?type=script&name=Command_Manager
And I'll attach the "draw" scripts to the post because they're no longer available from the main Hime website.
i can actually pay if someone interested><
Do you have a demo project that can help with checking this?
I'm finding that I need to do a lot of setup to get it to the point where I can test.
each of the files you shared has a typo.
a # at the beginning in the first one and an o at the end of the second.
Here's a very small demo. I've removed the most obvious typos from the script.

If you select the "draw" command from the main battle menu during combat, nothing happens. If you select the "draw" command from the "skills" menu, everything works as expected.
Hello,

I tested a few things and saw that Hime has provided a partial (not up to date) patch inside the Draw magic script (the script reference is not the same anymore), so here is an updated version of the patch:

Ruby:
#==============================================================================
# Hime Draw Magic + Hime Commands patch
#------------------------------------------------------------------------------
# Authors: Timtrack, Hime
# date: 05/12/2025
# Requires: Hime Draw Magic, Hime Commands patch ans their required scripts
#==============================================================================
# Description: A readaptation and fix of the patch at the end of Hime's Draw
# Magic script
#==============================================================================
# Term of use: no need to credit me (Timtrack),
# follow Hime's scripts term of use
#==============================================================================
# Load order:
#  Hime Command Manager
#  Hime Magic Units
#  Hime Draw Magic
#  This patch
#==============================================================================

if $imported["Tsuki_DrawMagic"] && $imported["CommandManager"]
#==============================================================================
# Scene_Battle
#==============================================================================
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # alias method: command_use_skill
  #--------------------------------------------------------------------------
  alias tim_th_draw_magic_command_use_skill command_use_skill
  def command_use_skill
    @skill_window.actor = BattleManager.actor #ensures skill window won't crash
    id = @actor_command_window.current_ext
    @skill = $data_skills[id]
    BattleManager.actor.input.set_skill(id)
    BattleManager.actor.last_skill.object = @skill
    if Tsuki::Draw_Magic::Draw_Skill.include?(id)
      select_enemy_draw_selection
    else
      tim_th_draw_magic_command_use_skill
    end
  end
 
  #--------------------------------------------------------------------------
  # new method: menu_skill? -> is the skill selected from the cmds menu?
  #--------------------------------------------------------------------------
  def menu_skill?
    @actor_command_window.current_symbol == :use_skill
  end
 
  #--------------------------------------------------------------------------
  # alias method: on_enemy_draw_cancel
  #--------------------------------------------------------------------------
  alias tim_th_on_enemy_draw_cancel on_enemy_draw_cancel
  def on_enemy_draw_cancel
    tim_th_on_enemy_draw_cancel
    return unless menu_skill?
    @actor_command_window.activate
    @skill_window.hide.deactivate
  end
 
  #--------------------------------------------------------------------------
  # alias method: on_draw_cancel
  #--------------------------------------------------------------------------
  alias tim_th_on_draw_cancel on_draw_cancel
  def on_draw_cancel
    tim_th_on_draw_cancel
    @skill_window.hide if menu_skill?
  end
end #Scene_Battle
end #$imported["Tsuki_DrawMagic"] && $imported["CommandManager"]
man you are magician! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/himeworks-command-manager-and-himeworks-draw-script-problem.181270/