Fix the learnset checker to handle chainbreeding better
Specifically, Spikes + Sleep Powder Roserade is no longer legal
Also add more comments to checkLearnset
Set level before set is validated- maxLevel for LC
Spread hits only get damage reduction if they spread
Properly fix spread hits and damage reduction
Fix bug in spread hit damage calculation
Fix Magic Guard
Screens are less effective in doubles
Add Smogon Doubles and VGC 2013 to !om
Chansey's been quickbanned in UU
Fix LC bug with DW moves

- No LC Pokemon can legally use its moves that are exclusively obtained from the Dream World

In other words, the Pokemon has to be above level 10 with it's DW ability + DW exclusive move
Viable moves changes
Randbats: Prevent Shed Skin + Chesto with Rest
Fix crash with Beat Up
(it would crash if, in doubles, a Pokemon in slot 2 that was statused
used Beat Up)
Fix crash in obscure situations with 1 pokemon
(It would previously crash if you used U-turn in doubles with a starting
team of 1 pokemon)
Slow Start goes away when the ability changes
Make sure Mold Breaker nullifies Snow Cloak and Sand Veil
Disallow avoiding losses by switching to an alt
New function getExact (refactor ladder stuff)
Fix sometimes incorrect Leech Seed message in doubles
This commit makes several changes to Protect and related moves in both
Gen 4 and Gen 5:

1) In Gen 4, the chance of protecting succeeding does not fall below
   1/8, which has now been corrected in this commit. Previously, the
   chance of success in Gen 4 was allowed to drop all the way to
   1/(2**32) as in Gen 5.

   Please see upokecenter for the correct mechanics:
     http://upokecenter.dreamhosters.com/dex/?lang=en&move=182

   For Protect and friends, Smogon currently says that the chance of
   success does not fall below 50%, which is inconsistent both with the
   current Pokemon Showdown! behaviour and with upokecenter. It is
   pretty much certain that upokecenter is accurate here, since it is
   based directly on the in-game data. This commit implements the
   upokecenter mechanics.

2) This commit also consolidates some duplicate code with Protect and
   friends by moving the miss chance logic to an event of the 'stall'
   volatile called onStallMove. This allows me to remove some duplicate
   code from moves.js.

3) Currently, some but not all of Protect and friends have a flag
   called stallingMove set to true. This flag does not appear to be used
   for anything. However, for consistency, I have set it to true for all
   the "stall moves", as opposed to just a subset of them.