Zarel/Pokemon-Showdown — pull request #594 by TalkTakesTime (2014-01-28 11:50:10+00:00)
Title: Fix redirection in doubles

Currently if your allied target faints in doubles, say with Heal Pulse or similar, the move will automatically be redirected to a random opponent.
This fix makes it the same as cartridge, where the automatic redirection will never change which side the move is targeting (so if your partner that you were targeting dies the move should fail with the "But there was no target..." message instead of being redirected).