mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
[Bug] PokemonSummonData
movesets will now be loaded correctly (#5793)
This commit is contained in:
parent
fa6c51d1e2
commit
cf1367cece
@ -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));
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user