         .transition(scale: 1, 250)
         .transition y: 0, 250, 'out', =>
           @removePokeball($pokeball)
-          done()
+      setTimeout(done, 500)
       $newPokemon.transition(opacity: 1)
     setTimeout(releasePokemon, 250)
 

          $substitute.remove()
          done()
        else
          $substitute.transition y: 300, opacity: 0, ->
            $substitute.remove()
            done()
      when 'ProtectAttachment', 'KingsShieldAttachment', 'SpikyShieldAttachment'
        @unattachScreen(player, slot, 'pink', done)
      when 'Air Balloon'

    scale = (if front then 1.3 else 1/1.3)
    if moveName == 'Earthquake'
      $attacker.add($defender).each (index) ->
        $(this).transition(x: -75, 62.5, 'easeInOutCubic')
          .transition(x: 75, 125, 'easeInOutCubic')
          .transition(x: -30, 125, 'easeInOutCubic')
          .transition(x: 30, 125, 'easeInOutCubic')
          .transition(x: 0, 62.5, 'easeInOutCubic')
      setTimeout(done, 500)
    else if 'contact' in moveData.flags
      # Simple attack animation
      # Tackling the opponent
