Update src/data/ability.ts

Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
This commit is contained in:
muscode 2024-11-03 12:06:56 -06:00 committed by GitHub
parent 507876b634
commit ac48209796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4909,7 +4909,7 @@ export function applyPostFaintAbAttrs(attrType: Constructor<PostFaintAbAttr>,
} }
export function applyPostItemLostAbAttrs(attrType: Constructor<PostItemLostAbAttr>, export function applyPostItemLostAbAttrs(attrType: Constructor<PostItemLostAbAttr>,
pokemon: Pokemon, passive: boolean, simulated: boolean = false, args: any[]): Promise<void> { pokemon: Pokemon, passive: boolean, simulated: boolean = false, ...args: any[]): Promise<void> {
return applyAbAttrsInternal<PostItemLostAbAttr>(attrType, pokemon, (attr, passive) => attr.applyPostItemLost(pokemon, passive, simulated, args), args); return applyAbAttrsInternal<PostItemLostAbAttr>(attrType, pokemon, (attr, passive) => attr.applyPostItemLost(pokemon, passive, simulated, args), args);
} }