mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Fix postsummon application
This commit is contained in:
parent
7c0d056d21
commit
116eb89dc0
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user