       name += formeName  unless formeName == 'default'
       name = name.toLowerCase().replace(/[^a-zA-Z0-9]+/g, '')
       return [speciesName, formeName]  if pokemonName == name
-  # Return last match
-  [speciesName, formeName]
+  # Return blank match
+  []

      name: speciesName, forme: formeName)
    total += pbv
    messages.push("#{pokemonName}: #{pbv}")
  messages.push("Total: #{total}")  if pokemon.length > 1
  PokeBattle.chatView.updateChat("<b>PBV:</b> #{messages.join(' | ')}")

# Finds the most lenient match possible.
findPokemon = (pokemonName) ->

  messages = []
  total = 0
  for array in pokemon
    continue  if array.length == 0
    [speciesName, formeName] = array
    if formeName == 'default'
      pokemonName = speciesName
