     @query("endTurn")
     for pokemon in @getActivePokemon()
       pokemon.turnsActive += 1
-    @checkReplacements()
+    @checkForReplacements()
 
   attach: (klass, options = {}) ->
     options = _.clone(options)

      pokemon.team.switchIn(pokemon)

    # Pokemon may have fainted upon switch-in; we need to check.
    @checkReplacements()

  # Executed by @continueTurn
  performMove: (pokemon, move) ->

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

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