mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-23 15:59:26 +02:00
publics
This commit is contained in:
parent
da75260e0a
commit
e81f9f0f5a
@ -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() ?? [];
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user