diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index 644902c595f..cec80190cb2 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -560,6 +560,8 @@ function loadAnimAssets(scene: BattleScene, anims: AnimConfig[], startLoad?: boo const backgrounds = new Set(); const sounds = new Set(); for (let a of anims) { + if (!a.frames?.length) + continue; const animSounds = a.getSoundResourceNames(); for (let ms of animSounds) sounds.add(ms); diff --git a/src/ui/egg-gacha-ui-handler.ts b/src/ui/egg-gacha-ui-handler.ts index 57672143fd2..7c69c3121a0 100644 --- a/src/ui/egg-gacha-ui-handler.ts +++ b/src/ui/egg-gacha-ui-handler.ts @@ -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";