Attempt fixing one hit KO

This commit is contained in:
Flashfyre committed 2024-03-09 10:40:51 -05:00
1 parent f98a866943
commit 6a6d676cb2
1 file changed
+2 -1
+2 -1
View File
@@ -1126,7 +1126,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
if (damage) {
damage.value = this.damageAndUpdate(damage.value, result as DamageResult, isCritical);
const oneHitKo = result === HitResult.ONE_HIT_KO;
damage.value = this.damageAndUpdate(damage.value, result as DamageResult, isCritical, oneHitKo, oneHitKo);
if (isCritical)
this.scene.queueMessage('A critical hit!');
this.scene.setPhaseQueueSplice();