update docs

This commit is contained in:
torranx 2024-09-06 22:07:32 +08:00
parent 83579d8b33
commit afe89282cc

View File

@ -1995,7 +1995,7 @@ export class TarShotTag extends BattlerTag {
/** /**
* If the Pokemon is terastallized, the tag cannot be added. * If the Pokemon is terastallized, the tag cannot be added.
* @param pokemon the pokemon to which the tag is added * @param {Pokemon} pokemon the {@linkcode Pokemon} to which the tag is added
* @returns whether the tag is applied * @returns whether the tag is applied
*/ */
override canAdd(pokemon: Pokemon): boolean { override canAdd(pokemon: Pokemon): boolean {
@ -2010,11 +2010,11 @@ export class TarShotTag extends BattlerTag {
/** /**
* Retrieves a BattlerTag based on the provided tag type, turn count, source move, and source ID. * Retrieves a BattlerTag based on the provided tag type, turn count, source move, and source ID.
* *
* @param {BattlerTagType} tagType - The type of the BattlerTag. * @param {BattlerTagType} tagType the type of the {@linkcode BattlerTagType}.
* @param {number} turnCount - The turn count. * @param turnCount the turn count.
* @param {Moves} sourceMove - The source move. * @param {Moves} sourceMove the source {@linkcode Moves}.
* @param {number} sourceId - The source ID. * @param sourceId the source ID.
* @returns {BattlerTag} The corresponding BattlerTag object. * @returns {BattlerTag} the corresponding {@linkcode BattlerTag} object.
*/ */
export function getBattlerTag(tagType: BattlerTagType, turnCount: number, sourceMove: Moves, sourceId: number): BattlerTag { export function getBattlerTag(tagType: BattlerTagType, turnCount: number, sourceMove: Moves, sourceId: number): BattlerTag {
switch (tagType) { switch (tagType) {