     triggered = false
     for stat, boost of pokemon.stages
       if boost < 0
-        battle.message "#{pokemon.name} restored its status using its #{@name}!"
+        battle.message "#{pokemon.name} restored its status using its #{@_name}!"
         triggered = true
         pokemon.stages[stat] = 0
     return triggered

makeItem 'Focus Band', ->
  this::editDamage = (damage, move) ->
    if damage >= @pokemon.currentHP && @battle.rng.randInt(0, 9, "focus band") == 0
      @battle.message "#{@pokemon.name} hung on using its #{@name}!"
      @pokemon.useItem()
      return @pokemon.currentHP - 1
    return damage

  this::editDamage = (damage, move) ->
    maxHP = @pokemon.stat('hp')
    if @pokemon.currentHP == maxHP && damage >= maxHP
      @battle.message "#{@pokemon.name} hung on using its #{@_name}!"
      @pokemon.useItem()
      return maxHP - 1
    return damage
