Animations for multiple-hit skills

I'm coming across this problem.

I have a Double Strike skill, which is supposed to hit the enemy twice, and plays the same animation every time it hits. But when I changed the "Repeats" to "2", it only plays the animation once, while damaging the enemy twice. Is there any ways to solve this?
Code:
# RAASTA: Repeat Attakcs Always Show Their Animation
# By Craze. Credit Craze/Stephen Bachinski somewhere small :)

class Scene_Battle < Scene_Base
 
  # overwrite: use_item
  def use_item
    item = @subject.current_action.item
    @log_window.display_use_item(@subject, item)
    @subject.use_item(item)
    refresh_status
    targets = @subject.current_action.make_targets.compact
    if item.for_all?
      show_animation(targets, item.animation_id)
      targets.each {|target| item.repeats.times { invoke_item(target, item) } }
    else
      targets.each {|target| item.repeats.times {
        show_animation(targets, item.animation_id) unless target.dead?
        invoke_item(target, item) } }
    end
  end
 
end

lemme know if this causes some weird . i tested it a few times with aoes vs repeat attacks and i think it's working fine.
Wow, thanks! This works just perfect!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/animations-for-multiple-hit-skills.116681/