[Bug] PokemonSummonData movesets will now be loaded correctly (#5793)

This commit is contained in:
NightKev 2025-05-07 21:02:16 -07:00 committed by GitHub
parent fa6c51d1e2
commit cf1367cece
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -7859,6 +7859,11 @@ export class PokemonSummonData {
continue; continue;
} }
if (key === "moveset") {
this.moveset = value.map((m: any) => PokemonMove.loadMove(m));
continue;
}
if (key === "tags") { if (key === "tags") {
// load battler tags // load battler tags
this.tags = value.map((t: BattlerTag) => loadBattlerTag(t)); this.tags = value.map((t: BattlerTag) => loadBattlerTag(t));

View File

@ -1,5 +1,4 @@
import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator"; import type { SessionSaveMigrator } from "#app/@types/SessionSaveMigrator";
import { Status } from "#app/data/status-effect";
import { PokemonMove } from "#app/field/pokemon"; import { PokemonMove } from "#app/field/pokemon";
import type { SessionSaveData } from "#app/system/game-data"; import type { SessionSaveData } from "#app/system/game-data";
import type PokemonData from "#app/system/pokemon-data"; import type PokemonData from "#app/system/pokemon-data";