From 84741bad4568fd4eb800cb121ecd45527b5d76c8 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Sun, 8 Sep 2024 18:30:35 -0700 Subject: [PATCH] Formatting change --- src/data/ability.ts | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 16649bcd2c2..343183ba2b8 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1755,18 +1755,13 @@ export class PostSetStatusAbAttr extends AbAttr { /** * Does nothing after a status condition is set. * @param pokemon {@linkcode Pokemon} that status condition was set on. - * @param sourcePokemon {@linkcode Pokemon} that that set the status condition. Is null if status was not set by a Pokemon. + * @param sourcePokemon {@linkcode Pokemon} that that set the status condition. Is `null` if status was not set by a Pokemon. * @param passive Whether this ability is a passive. * @param effect {@linkcode StatusEffect} that was set. * @param args Set of unique arguments needed by this attribute. - * @returns true if application of the ability succeeds. + * @returns `true` if application of the ability succeeds. */ - applyPostSetStatus( - pokemon: Pokemon, - sourcePokemon: Pokemon | null = null, - passive: boolean, - effect: StatusEffect, - args: any[]) : boolean | Promise { + applyPostSetStatus(pokemon: Pokemon, sourcePokemon: Pokemon | null = null, passive: boolean, effect: StatusEffect, args: any[]) : boolean | Promise { return false; } } @@ -1778,22 +1773,17 @@ export class PostSetStatusAbAttr extends AbAttr { */ export class SynchronizeStatusAbAttr extends PostSetStatusAbAttr { /** - * If the StatusEffect that was set is Burn, Paralysis, Poison, or Toxic, and the status - * was set by a source Pokemon, set the source Pokemon's status to the same StatusEffect. + * If the `StatusEffect` that was set is Burn, Paralysis, Poison, or Toxic, and the status + * was set by a source Pokemon, set the source Pokemon's status to the same `StatusEffect`. * @param pokemon {@linkcode Pokemon} that status condition was set on. * @param sourcePokemon {@linkcode Pokemon} that that set the status condition. Is null if status was not set by a Pokemon. * @param passive Whether this ability is a passive. * @param effect {@linkcode StatusEffect} that was set. * @param args Set of unique arguments needed by this attribute. - * @returns true if application of the ability succeeds. + * @returns `true` if application of the ability succeeds. */ - applyPostSetStatus( - pokemon: Pokemon, - sourcePokemon: Pokemon | null = null, - passive: boolean, - effect: StatusEffect, - args: any[]): boolean { - // Synchronizable statuses + override applyPostSetStatus(pokemon: Pokemon, sourcePokemon: Pokemon | null = null, passive: boolean, effect: StatusEffect, args: any[]): boolean { + /** Synchronizable statuses */ const syncStatuses = new Set([ StatusEffect.BURN, StatusEffect.PARALYSIS,