Fix crash related to moves without battle animations
This commit is contained in:
1 parent
a333f7886c
commit
a3cde2df59
2 files changed
+2
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user