mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-07 07:59:26 +02:00
[Bug] [Beta] Fix serialization with transform (#6207)
Fix serialization with transform
This commit is contained in:
parent
8a2b888971
commit
800b8c9905
@ -162,6 +162,7 @@ export class PokemonSummonData {
|
|||||||
|
|
||||||
if (key === "speciesForm" || key === "fusionSpeciesForm") {
|
if (key === "speciesForm" || key === "fusionSpeciesForm") {
|
||||||
this[key] = deserializePokemonSpeciesForm(value);
|
this[key] = deserializePokemonSpeciesForm(value);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key === "illusion" && typeof value === "object") {
|
if (key === "illusion" && typeof value === "object") {
|
||||||
@ -182,6 +183,7 @@ export class PokemonSummonData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this[key] = illusionData as IllusionData;
|
this[key] = illusionData as IllusionData;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key === "moveset") {
|
if (key === "moveset") {
|
||||||
|
Loading…
Reference in New Issue
Block a user