From 3933cf5c7b418011d880db40808fa2e303906e8c Mon Sep 17 00:00:00 2001 From: Marty-D Date: Sat, 1 Sep 2018 09:31:45 -0400 Subject: [PATCH] Fix past gen Pursuit knockouts on the switch --- sim/pokemon.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sim/pokemon.js b/sim/pokemon.js index d8d8b1eaf0d1..69c36e9ef9d4 100644 --- a/sim/pokemon.js +++ b/sim/pokemon.js @@ -1557,11 +1557,10 @@ class Pokemon { * @param {Side | boolean} side */ getHealthInner(side) { + if (!this.hp) return '0 fnt'; let hpstring; // side === true in replays - if (!this.hp) { - hpstring = '0'; - } else if (side === this.side || side === true) { + if (side === this.side || side === true) { hpstring = '' + this.hp + '/' + this.maxhp; } else { let ratio = this.hp / this.maxhp;