       pokemon.team.switchIn(pokemon)
 
     # Pokemon may have fainted upon switch-in; we need to check.
-    @checkReplacements()
+    @checkForReplacements()
 
   # Executed by @continueTurn
   performMove: (pokemon, move) ->

    total += (request  for request of @requests).length
    total == 0

  checkReplacements: ->
    @performFaints()
    if @isOver()
      @endBattle()

    @query("endTurn")
    for pokemon in @getActivePokemon()
      pokemon.turnsActive += 1
    @checkForReplacements()

  attach: (klass, options = {}) ->
    options = _.clone(options)
