Attempt fixing one hit KO

This commit is contained in:
Flashfyre 2024-03-09 10:40:51 -05:00
parent f98a866943
commit 6a6d676cb2
1 changed files with 2 additions and 1 deletions

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();