Fix serialization with transform

This commit is contained in:
Sirz Benjie 2025-08-03 16:35:53 -06:00
parent 8a2b888971
commit 1f3ab887a5
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -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") {