[Bug] PokemonSummonData movesets will now be loaded correctly

This commit is contained in:
NightKev 2025-05-07 05:24:43 -07:00
parent 4aa0eac5aa
commit 256ff540fb
2 changed files with 5 additions and 1 deletions

View File

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

View File

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