Attempt fixing one hit KO
parent
f98a866943
commit
6a6d676cb2
|
@ -1126,7 +1126,8 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (damage) {
|
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)
|
if (isCritical)
|
||||||
this.scene.queueMessage('A critical hit!');
|
this.scene.queueMessage('A critical hit!');
|
||||||
this.scene.setPhaseQueueSplice();
|
this.scene.setPhaseQueueSplice();
|
||||||
|
|
Loading…
Reference in New Issue