mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 16:56:11 +00:00
corrected uturn flip turn crash (#596)
This commit is contained in:
parent
af86bdeb06
commit
9d90cc3e10
@ -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