fix: HeldItemTransferModifier.apply missing `...args: unknown[]`

This commit is contained in:
flx-sta 2024-09-17 09:11:08 -07:00
parent d2a59f4b7c
commit a229cfb916
1 changed files with 2 additions and 1 deletions

View File

@ -3015,9 +3015,10 @@ export abstract class HeldItemTransferModifier extends PokemonHeldItemModifier {
* Steals an item from a set of target Pokemon.
* This prioritizes high-tier held items when selecting the item to steal.
* @param pokemon The {@linkcode Pokemon} holding this item
* @param _args N/A
* @returns `true` if an item was stolen; false otherwise.
*/
override apply(pokemon: Pokemon): boolean {
override apply(pokemon: Pokemon, ..._args: unknown[]): boolean {
const opponents = this.getTargets(pokemon);
if (!opponents.length) {