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>(
attrType: AbAttrMap[K] extends PostSummonAbAttr ? K : never,
pokemon: Pokemon,
passive = false,
simulated = false,
...args: any[]
): void {
applyAbAttrsInternal(
attrType,
applySingleAbAttrs(
pokemon,
passive,
attrType,
(attr, passive) => (attr as PostSummonAbAttr).applyPostSummon(pokemon, passive, simulated, args),
(attr, passive) => (attr as PostSummonAbAttr).canApplyPostSummon(pokemon, passive, simulated, args),
args,
false,
simulated,
);
}