From d49d49f9bc07789d71d10de7646466b1b31eef5b Mon Sep 17 00:00:00 2001 From: Eucalyptus Date: Sun, 6 Oct 2024 12:54:08 -0400 Subject: [PATCH] Update use of isTransferrable to isTransferable --- src/data/move.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index 65a220909bb..4a60f76cf27 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -6932,8 +6932,8 @@ export class SwapHeldItemsAttr extends MoveEffectAttr { */ apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { - const targetHeldItems = target.getHeldItems().filter(i => i.isTransferrable); - const userHeldItems = user.getHeldItems().filter(i => i.isTransferrable); + const targetHeldItems = target.getHeldItems().filter(i => i.isTransferable); + const userHeldItems = user.getHeldItems().filter(i => i.isTransferable); if (!user.hasTrainer() || target.hasAbility(Abilities.STICKY_HOLD) || (!userHeldItems.length && !targetHeldItems.length)) { user.scene.queueMessage(i18next.t("battle:attackFailed"));