From ff761e1a78a9b7455a1314df036d49910ed211a4 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Thu, 3 Oct 2024 08:45:33 -0700 Subject: [PATCH] Update src/data/move.ts --- src/data/move.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data/move.ts b/src/data/move.ts index db5a776a787..d547cd56524 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1595,7 +1595,12 @@ export class PartyStatusCureAttr extends MoveEffectAttr { return true; } - cureStatus(pokemon: Pokemon, userId: number) { + /** + * Tries to cure the status of the given {@linkcode Pokemon} + * @param pokemon The {@linkcode Pokemon} to cure. + * @param userId The ID of the (move) {@linkcode Pokemon | user}. + */ + public cureStatus(pokemon: Pokemon, userId: number) { if (!pokemon.isOnField() || pokemon.id === userId) { // user always cures its own status, regardless of ability pokemon.resetStatus(false); pokemon.updateInfo();