This commit is contained in:
frutescens 2024-10-11 15:10:45 -07:00
parent da75260e0a
commit e81f9f0f5a
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export abstract class ArenaTag {
* @param scene medium to retrieve the source Pokemon * @param scene medium to retrieve the source Pokemon
* @returns The source {@linkcode Pokemon} or `null` if none is found * @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; return this.sourceId ? scene.getPokemonById(this.sourceId) : null;
} }
@ -86,7 +86,7 @@ export abstract class ArenaTag {
* @param scene - medium to retrieve the involved Pokemon * @param scene - medium to retrieve the involved Pokemon
* @returns list of PlayerPokemon or EnemyPokemon on the field * @returns list of PlayerPokemon or EnemyPokemon on the field
*/ */
getAffectedPokemon(scene: BattleScene): Pokemon[] { public getAffectedPokemon(scene: BattleScene): Pokemon[] {
switch (this.side) { switch (this.side) {
case ArenaTagSide.PLAYER: case ArenaTagSide.PLAYER:
return scene.getPlayerField() ?? []; return scene.getPlayerField() ?? [];

View File

@ -97,7 +97,7 @@ export class BattlerTag {
* @param scene medium to retrieve the source Pokemon * @param scene medium to retrieve the source Pokemon
* @returns The source {@linkcode Pokemon} or `null` if none is found * @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; return this.sourceId ? scene.getPokemonById(this.sourceId) : null;
} }
} }