mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-30 14:38:43 +01:00
Attempt fixing one hit KO
This commit is contained in:
parent
f98a866943
commit
6a6d676cb2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user