corrected uturn flip turn crash (#596)

pull/836/head
YounesM 2024-05-14 01:52:36 +02:00 committed by GitHub
parent af86bdeb06
commit 9d90cc3e10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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