Apply suggestions from code review

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
This commit is contained in:
Mumble 2024-09-25 13:11:39 -07:00 committed by GitHub
parent 1728e69130
commit 0576826ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View File

@ -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 * 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` * @returns `true`
*/ */
override activateTrap(pokemon: Pokemon): boolean { override activateTrap(pokemon: Pokemon): boolean {

View File

@ -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. * Torment restricts the consecutive use of moves.
* The tag is only removed if the target leaves the battle. * 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 * 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' * 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 * '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) { override onAdd(pokemon: Pokemon) {
super.onAdd(pokemon); super.onAdd(pokemon);
@ -2463,7 +2463,7 @@ export class TormentTag extends MoveRestrictionBattlerTag {
/** /**
* Torment only ends when the affected Pokemon leaves the battle field * 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 * @param _tagType
* @returns `true` if still present | `false` if not * @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` * 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 * @returns `true` if there is valid consecutive usage | `false` if the moves are different from each other
*/ */
override isMoveRestricted(move: Moves): boolean { 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. * Taunt restricts the use of status moves.
* The tag is removed after 4 turns. * 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 * 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 * @returns `true` if the move is a status move
*/ */
override isMoveRestricted(move: Moves): boolean { 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. * 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. * 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 * 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 * @returns `false` if either condition is not met
*/ */
override isMoveRestricted(move: Moves): boolean { override isMoveRestricted(move: Moves): boolean {