mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-23 15:59:26 +02:00
Update src/data/move.ts
This commit is contained in:
parent
50cf9f664a
commit
ff761e1a78
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user