mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 22:39:31 +02:00
fix tsdocs
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
ce0305cf85
commit
34343a0941
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user