Random Battle: Improve HP evs (#3445)
Random Battle: Improve HP evs (#3445)

* Random Battle: Improve HP evs

This lets Zygarde-10% activate Power Construct in two subs, and also simplifies some unnecessarily complex code.

* Fix formatting (#19)

* Update scripts.js

It can't sub down to exactly half if it's got lefties, so don't give it less HP for no reason.

aakashrajput/Pokemon-Showdown,panpawn/Pokemon-Showdown,Lord-Haji/SpacialGaze,xCrystal/Pokemon-Showdown,xfix/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,panpawn/Gold-Server,svivian/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,svivian/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,AustinXII/Pokemon-Showdown,PS-Spectral/Spectral,Enigami/Pokemon-Showdown,xCrystal/Pokemon-Showdown,HoeenCoder/SpacialGaze,Lord-Haji/SpacialGaze,danpantry/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,AustinXII/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,xCrystal/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,HoeenCoder/SpacialGaze,ShowdownHelper/Saffron,Sora-League/Sora,PS-Spectral/Spectral,TbirdClanWish/Pokemon-Showdown,DesoGit/Tsunami_PS,sirDonovan/Pokemon-Showdown,danpantry/Pokemon-Showdown,HoeenCoder/SpacialGaze,Zarel/Pokemon-Showdown,svivian/Pokemon-Showdown,Sora-League/Sora,panpawn/Pokemon-Showdown,urkerab/Pokemon-Showdown,DesoGit/Tsunami_PS,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,urkerab/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,AWailOfATail/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,DesoGit/Tsunami_PS,CreaturePhil/Showdown-Boilerplate,urkerab/Pokemon-Showdown,svivian/Pokemon-Showdown,Enigami/Pokemon-Showdown,HoeenCoder/SpacialGaze,Lord-Haji/SpacialGaze,xfix/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,Mystifi/Exiled,ShowdownHelper/Saffron,Enigami/Pokemon-Showdown,ShowdownHelper/Saffron,QuiteQuiet/Pokemon-Showdown,Enigami/Pokemon-Showdown,Mystifi/Exiled,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Mystifi/Exiled,PS-Spectral/Spectral,panpawn/Gold-Server,jumbowhales/Pokemon-Showdown,Sora-League/Sora,sirDonovan/Pokemon-Showdown,svivian/Pokemon-Showdown,AustinXII/Pokemon-Showdown,panpawn/Gold-Server