Update src/data/move.ts

This commit is contained in:
flx-sta 2024-10-03 08:45:33 -07:00 committed by GitHub
parent 50cf9f664a
commit ff761e1a78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();