Fix postsummon application

This commit is contained in:
Dean 2025-06-11 21:52:23 -07:00
parent 7c0d056d21
commit 116eb89dc0

View File

@ -470,15 +470,18 @@ export function applyPostVictoryAbAttrs<K extends AbAttrString>(
export function applyPostSummonAbAttrs<K extends AbAttrString>( export function applyPostSummonAbAttrs<K extends AbAttrString>(
attrType: AbAttrMap[K] extends PostSummonAbAttr ? K : never, attrType: AbAttrMap[K] extends PostSummonAbAttr ? K : never,
pokemon: Pokemon, pokemon: Pokemon,
passive = false,
simulated = false, simulated = false,
...args: any[] ...args: any[]
): void { ): void {
applyAbAttrsInternal( applySingleAbAttrs(
attrType,
pokemon, pokemon,
passive,
attrType,
(attr, passive) => (attr as PostSummonAbAttr).applyPostSummon(pokemon, passive, simulated, args), (attr, passive) => (attr as PostSummonAbAttr).applyPostSummon(pokemon, passive, simulated, args),
(attr, passive) => (attr as PostSummonAbAttr).canApplyPostSummon(pokemon, passive, simulated, args), (attr, passive) => (attr as PostSummonAbAttr).canApplyPostSummon(pokemon, passive, simulated, args),
args, args,
false,
simulated, simulated,
); );
} }