From 1782a184596ca99ad024605a88866bc9b8edca68 Mon Sep 17 00:00:00 2001 From: DustinLin Date: Sun, 12 May 2024 13:22:41 -0400 Subject: [PATCH] updated multi-hit condition) --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index ee2abc786..0e7911f9f 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1648,7 +1648,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { // case when multi hit move killed early, then queue how many hits were made before // eg: bullet seed 1 shots, double-slap 1 shots, // note that simply looking at this.turnData.attacksReceived doesn't work for double battles - if (this.isFainted() && source.turnData.hitsLeft > 0){ + if (this.isFainted() && source.turnData.hitsLeft > 1){ console.log(`${this.name} fainted: they received this many hits: ${this.turnData.attacksReceived.length}`); // off by one from decrement, test more const hitsTotal = source.turnData.hitCount - Math.max(source.turnData.hitsLeft, 0) + 1;