Fix crash related to moves without battle animations
This commit is contained in:
parent
a333f7886c
commit
a3cde2df59
|
@ -560,6 +560,8 @@ function loadAnimAssets(scene: BattleScene, anims: AnimConfig[], startLoad?: boo
|
|||
const backgrounds = new Set<string>();
|
||||
const sounds = new Set<string>();
|
||||
for (let a of anims) {
|
||||
if (!a.frames?.length)
|
||||
continue;
|
||||
const animSounds = a.getSoundResourceNames();
|
||||
for (let ms of animSounds)
|
||||
sounds.add(ms);
|
||||
|
|
|
@ -6,7 +6,6 @@ import * as Utils from "../utils";
|
|||
import { EGG_SEED, Egg, GachaType, getEggTierDefaultHatchWaves, getEggDescriptor, getLegendaryGachaSpeciesForTimestamp } from "../data/egg";
|
||||
import { VoucherType, getVoucherTypeIcon } from "../system/voucher";
|
||||
import { getPokemonSpecies } from "../data/pokemon-species";
|
||||
import { Type } from "../data/type";
|
||||
import { addWindow } from "./window";
|
||||
import { Tutorial, handleTutorial } from "../tutorial";
|
||||
import { EggTier } from "../data/enums/egg-type";
|
||||
|
|
Loading…
Reference in New Issue