Trying to make a Multi Hits/Targets(VXA) script

Hi, I'm writing a script, it's my first one and I've only recently started working with Ruby, I don't know what's happening and why it's giving me an error. This is the code:

Ruby:
# Adiciona um método para ler notetags
class RPG::Skill < RPG::UsableItem
  def multiAtaque_ataque
    # Procura por uma notetag como <multiataque: X> e retorna o valor X
    if @note =~ /<multiataque:\s*(\d+)>/i
      return $1.to_i
    else
      return 1 # Valor padrão se a notetag não for encontrada
    end
  end

  def multiAtaque_alvo
    # Procura por uma notetag como <alvos: todos> ou <alvos: aleatorio>
    if @note =~ /<alvos:\s*(todos|aleatorio)>/i
      return $1.downcase
    else
      return "unico" # Valor padrão se a notetag não for encontrada
    end
  end
end

class Game_Battler < Game_BattlerBase
  # Método para aplicar uma habilidade com múltiplos ataque e múltiplos alvos
  def skill_effect_multiAtaque(user, skill)
    # Verifica se a habilidade pode ser usada no alvo
    return unless skill.can_use?(user)

    # Obtém o número de ataque e os alvos da notetag
    ataque = skill.multiAtaque_ataque
    tipodeAlvo = skill.multiAtaque_alvo

    # Define os alvos com base na notetag
    alvos = case tipodeAlvo
              when "todos"
                user.opponents_unit.alive_members
              when "aleatorio"
                [user.opponents_unit.alive_members.sample]
              else
                [self] # Alvo único (padrão)
              end

    # Itera sobre os alvos
    alvos.each do |target|
      # Aplica o dano várias vezes (ataque)
      ataque.times do
        # Calcula o dano (usando a fórmula da habilidade)
        damage = make_damage_value(user, skill)
        target.hp -= damage
        target.hp = [target.hp, 0].max # Garante que o HP não fique negativo
        # Exibe a animação de dano
        target.animation_id = skill.animation_id
      end
    end
  end
end

class Scene_Battle < Scene_Base
  # Método para chamar a habilidade personalizada
  alias original_use_item use_item
  def use_item
    item = @subject.current_action.item
    if item.is_a?(RPG::Skill) && item.multiAtaque_ataque > 1
      # Se for uma habilidade com múltiplos ataque, usa o método personalizado
      @subject.skill_effect_multiAtaque(@subject, item)
    else
      # Caso contrário, usa o método original
      original_use_item
    end
  end
end
The error message that appears is this:
image.png

I have already tried using skill_effect (as seen in the image), I have also tried with skill.can_use (as seen in the code) and I also get the error message on line 26.
Please help me.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-multi-hits-targets-vxa-script.175010/