Zarel/Pokemon-Showdown — pull request #629 by TalkTakesTime (2014-02-11 09:41:56+00:00)
Title: Fix gem interaction with selfdestruct moves

Currently gems don't boost selfdestruct moves because the pokemon's HP is reduced to 0 before ```addVolatile``` is called, which happens before the pokemon is considered to have fainted, and so the gem boost can never occur because ```volatiles['gem']``` doesn't get added. Checking if the pokemon has actually fainted fixes this, since the fainting happens after the move is completed.