From 61e2cfca27db3a5debbf28c668e30e89791afa75 Mon Sep 17 00:00:00 2001 From: The Immortal Date: Sun, 6 Mar 2016 20:36:28 +0400 Subject: [PATCH] Correctly implement Shedinja's HP Pokemon with a base HP of 1 do increase according to the stat formula. Shedinja is hardcoded to have 1 HP no matter what its base stat is. --- battle-engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battle-engine.js b/battle-engine.js index 84cef669ef..40ec4382db 100644 --- a/battle-engine.js +++ b/battle-engine.js @@ -276,7 +276,7 @@ BattlePokemon = (() => { } this.maxhp = Math.floor(Math.floor(2 * this.template.baseStats['hp'] + this.set.ivs['hp'] + Math.floor(this.set.evs['hp'] / 4) + 100) * this.level / 100 + 10); - if (this.template.baseStats['hp'] === 1) this.maxhp = 1; // shedinja + if (this.speciesid === 'shedinja') this.maxhp = 1; this.hp = this.hp || this.maxhp; this.isStale = 0;