From 0576826ca69a443433aa850d88b38f5f2c00857d Mon Sep 17 00:00:00 2001 From: Mumble <171087428+frutescens@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:11:39 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com> --- src/data/arena-tag.ts | 2 +- src/data/battler-tags.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index 8fac5eafbfa..8ffb3038629 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -970,7 +970,7 @@ class ImprisonTag extends ArenaTrapTag { /** * This applies the effects of Imprison to any opposing Pokemon that switch into the field while the source Pokemon is still active - * @param pokemon the Pokemon Imprison is applied to + * @param {Pokemon} pokemon the Pokemon Imprison is applied to * @returns `true` */ override activateTrap(pokemon: Pokemon): boolean { diff --git a/src/data/battler-tags.ts b/src/data/battler-tags.ts index b65f8f3ecca..804a1f4ddbe 100644 --- a/src/data/battler-tags.ts +++ b/src/data/battler-tags.ts @@ -2438,7 +2438,7 @@ export class MysteryEncounterPostSummonTag extends BattlerTag { } /** - * Battle Tag that applies the move Torment to the target Pokemon + * BattlerTag that applies the effects of Torment to the target Pokemon * Torment restricts the consecutive use of moves. * The tag is only removed if the target leaves the battle. * Torment does not interrupt the move if the move is performed consecutively in the same turn and right after Torment is applied @@ -2453,7 +2453,7 @@ export class TormentTag extends MoveRestrictionBattlerTag { /** * Adds the battler tag to the target Pokemon and defines the private class variable 'target' * 'Target' is used to track the Pokemon's current status - * @param pokemon the Pokemon tormented + * @param {Pokemon} pokemon the Pokemon tormented */ override onAdd(pokemon: Pokemon) { super.onAdd(pokemon); @@ -2463,7 +2463,7 @@ export class TormentTag extends MoveRestrictionBattlerTag { /** * Torment only ends when the affected Pokemon leaves the battle field - * @param pokemon the Pokemon under the effects of Torment + * @param {Pokemon} pokemon the Pokemon under the effects of Torment * @param _tagType * @returns `true` if still present | `false` if not */ @@ -2473,7 +2473,7 @@ export class TormentTag extends MoveRestrictionBattlerTag { /** * This checks if the current move used is identical to the last used move with a {@linkcode MoveResult} of `SUCCESS`/`MISS` - * @param move the move under investigation + * @param {Moves} move the move under investigation * @returns `true` if there is valid consecutive usage | `false` if the moves are different from each other */ override isMoveRestricted(move: Moves): boolean { @@ -2498,7 +2498,7 @@ export class TormentTag extends MoveRestrictionBattlerTag { } /** - * Battle Tag that applies the move Taunt to the target Pokemon + * BattlerTag that applies the effects of Taunt to the target Pokemon * Taunt restricts the use of status moves. * The tag is removed after 4 turns. */ @@ -2514,7 +2514,7 @@ export class TauntTag extends MoveRestrictionBattlerTag { /** * Checks if a move is a status move and determines its restriction status on that basis - * @param move the move under investigation + * @param {Moves} move the move under investigation * @returns `true` if the move is a status move */ override isMoveRestricted(move: Moves): boolean { @@ -2531,7 +2531,7 @@ export class TauntTag extends MoveRestrictionBattlerTag { } /** - * Battle Tag that applies the move Imprison to the target Pokemon + * BattlerTag that applies the effects of Imprison to the target Pokemon * Imprison restricts the opposing side's usage of moves shared by the source-user of Imprison. * The tag is only removed when the source-user is removed from the field. */ @@ -2558,7 +2558,7 @@ export class ImprisonTag extends MoveRestrictionBattlerTag { /** * Checks if the source of the tag has the parameter move in its moveset and that the source is still active - * @param move the move under investigation + * @param {Moves} move the move under investigation * @returns `false` if either condition is not met */ override isMoveRestricted(move: Moves): boolean {