From d1f9ef6fec1cf1daf4f1a20c2df1567249925bb2 Mon Sep 17 00:00:00 2001 From: MathyFurret <4866817+MathyFurret@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:00:22 -0600 Subject: [PATCH] Gen 4-5: Fix target in Frisk message --- data/mods/gen4/abilities.ts | 2 +- data/mods/gen5/abilities.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/mods/gen4/abilities.ts b/data/mods/gen4/abilities.ts index b4f436b5f3c0..2e71d1a2eab9 100644 --- a/data/mods/gen4/abilities.ts +++ b/data/mods/gen4/abilities.ts @@ -191,7 +191,7 @@ export const Abilities: import('../../../sim/dex-abilities').ModdedAbilityDataTa onStart(pokemon) { const target = pokemon.side.randomFoe(); if (target?.item && !target.itemState.knockedOff) { - this.add('-item', pokemon, target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon); + this.add('-item', '', target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon); } }, }, diff --git a/data/mods/gen5/abilities.ts b/data/mods/gen5/abilities.ts index 010a71d1affc..a51c64b58abe 100644 --- a/data/mods/gen5/abilities.ts +++ b/data/mods/gen5/abilities.ts @@ -21,7 +21,7 @@ export const Abilities: import('../../../sim/dex-abilities').ModdedAbilityDataTa onStart(pokemon) { const target = pokemon.side.randomFoe(); if (target?.item) { - this.add('-item', pokemon, target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon); + this.add('-item', '', target.getItem().name, '[from] ability: Frisk', '[of] ' + pokemon); } }, },