Revert "Rework moveset generation logic and fix window selection crash"

This reverts commit 321c3f3e90.
This commit is contained in:
Flashfyre committed 2024-04-02 00:27:15 -04:00
1 parent 321c3f3e90
commit 5e8b5c8ac7
3 files changed
+6 -16

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ export function updateWindowType(scene: BattleScene, windowTypeIndex: integer):
const windowObjects: [Phaser.GameObjects.NineSlice, WindowVariant][] = [];
const themedObjects: Phaser.GameObjects.Image[] = [];
const traverse = (object: any) => {
if (object.hasOwnProperty('children') && object.children instanceof Phaser.GameObjects.DisplayList) {
if (object.hasOwnProperty('children')) {
const children = object.children as Phaser.GameObjects.DisplayList;
for (let child of children.getAll())
traverse(child);