mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
quick docs
This commit is contained in:
parent
a0c8b2818f
commit
03ace56dc4
@ -932,6 +932,11 @@ class ImprisonTag extends ArenaTrapTag {
|
|||||||
super(ArenaTagType.IMPRISON, Moves.IMPRISON, sourceId, side, 1);
|
super(ArenaTagType.IMPRISON, Moves.IMPRISON, sourceId, side, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper function that retrieves the Pokemon effected
|
||||||
|
* @param scene medium to retrieve the involved Pokemon
|
||||||
|
* @returns list of PlayerPokemon or EnemyPokemon on the field
|
||||||
|
*/
|
||||||
retrieveField(scene: BattleScene): PlayerPokemon[] | EnemyPokemon[] {
|
retrieveField(scene: BattleScene): PlayerPokemon[] | EnemyPokemon[] {
|
||||||
if (!this.source.isPlayer()) {
|
if (!this.source.isPlayer()) {
|
||||||
return scene.getPlayerField();
|
return scene.getPlayerField();
|
||||||
|
Loading…
Reference in New Issue
Block a user