diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index 9ab9d168750..536d199fd11 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -77,7 +77,7 @@ export abstract class ArenaTag { * @param scene medium to retrieve the source Pokemon * @returns The source {@linkcode Pokemon} or `null` if none is found */ - getSourcePokemon(scene: BattleScene): Pokemon | null { + public getSourcePokemon(scene: BattleScene): Pokemon | null { return this.sourceId ? scene.getPokemonById(this.sourceId) : null; } @@ -86,7 +86,7 @@ export abstract class ArenaTag { * @param scene - medium to retrieve the involved Pokemon * @returns list of PlayerPokemon or EnemyPokemon on the field */ - getAffectedPokemon(scene: BattleScene): Pokemon[] { + public getAffectedPokemon(scene: BattleScene): Pokemon[] { switch (this.side) { case ArenaTagSide.PLAYER: return scene.getPlayerField() ?? []; diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index 9d879c2ccdf..9a5f0b87f93 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -97,7 +97,7 @@ export class BattlerTag { * @param scene medium to retrieve the source Pokemon * @returns The source {@linkcode Pokemon} or `null` if none is found */ - getSourcePokemon(scene: BattleScene): Pokemon | null { + public getSourcePokemon(scene: BattleScene): Pokemon | null { return this.sourceId ? scene.getPokemonById(this.sourceId) : null; } }