mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 10:52:17 +02:00
corrected uturn flip turn crash
This commit is contained in:
parent
582330df33
commit
31b51bb59a
@ -13,7 +13,7 @@ export default class DamageNumberHandler {
|
|||||||
add(target: Pokemon, amount: integer, result: DamageResult | HitResult.HEAL = HitResult.EFFECTIVE, critical: boolean = false): void {
|
add(target: Pokemon, amount: integer, result: DamageResult | HitResult.HEAL = HitResult.EFFECTIVE, critical: boolean = false): void {
|
||||||
const scene = target.scene;
|
const scene = target.scene;
|
||||||
|
|
||||||
if (!scene.damageNumbersMode)
|
if (!scene?.damageNumbersMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const battlerIndex = target.getBattlerIndex();
|
const battlerIndex = target.getBattlerIndex();
|
||||||
|
Loading…
Reference in New Issue
Block a user