fix tsdocs

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
muscode 2024-11-01 10:20:47 -06:00 committed by GitHub
parent ce0305cf85
commit 34343a0941
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4907,12 +4907,12 @@ export class PostDamageForceSwitchAbAttr extends PostDamageAbAttr {
* Checks various conditions based on the moves used by the Pokémon, the opponents' moves, and * Checks various conditions based on the moves used by the Pokémon, the opponents' moves, and
* the Pokémon's health after damage to determine whether the switch-out should occur. * the Pokémon's health after damage to determine whether the switch-out should occur.
* *
* @param {Pokemon} pokemon The Pokémon that took damage. * @param pokemon The Pokémon that took damage.
* @param {number} damage The amount of damage taken by the Pokémon. * @param damage The amount of damage taken by the Pokémon.
* @param {boolean} passive N/A * @param passive N/A
* @param {boolean} simulated Whether the ability is being simulated. * @param simulated Whether the ability is being simulated.
* @param {any[]} args N/A * @param args N/A
* @returns {boolean | Promise<boolean>} True if the switch-out logic was successfully applied, false otherwise. * @returns `true` if the switch-out logic was successfully applied
*/ */
applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> { applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
const moveHistory = pokemon.getMoveHistory(); const moveHistory = pokemon.getMoveHistory();