Zarel/Pokemon-Showdown — pull request #1274 by ascriptmaster (2014-10-21 05:06:47+00:00)
Title: Tournament code no longer overrides BattleRoom.win

Since tournament battle rooms already keep track of the room where the
tournament began, it's possible to have the default `BattleRoom.win` submit
the results of the battle instead of having to override the function and
still call the old code (very messy).

The initial tournament code refactor had a bug that caused problems if a
tournament was forcefully ended, leaving the tournament battle's win check
confused. Adding a line of code to `Tournament.forceEnd` should have fixed this.