From 1fbfb6e0f2e1305de4370d2d196df17018543303 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sun, 2 Feb 2025 01:19:28 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/ability.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 8f575e08b4e..40ab5967464 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -2696,10 +2696,6 @@ export class PreSwitchOutFormChangeAbAttr extends PreSwitchOutAbAttr { } export class PreLeaveFieldAbAttr extends AbAttr { - constructor() { - super(true); - } - applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise { return false; } @@ -2710,12 +2706,11 @@ export class PreLeaveFieldAbAttr extends AbAttr { * Clears Desolate Land/Primordial Sea/Delta Stream upon the Pokemon switching out. */ export class PreLeaveFieldClearWeatherAbAttr extends PreLeaveFieldAbAttr { - /** * @param pokemon The {@linkcode Pokemon} with the ability * @param passive N/A * @param args N/A - * @returns {boolean} Returns true if the weather clears, otherwise false. + * @returns Returns `true` if the weather clears, otherwise `false`. */ applyPreLeaveField(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean | Promise { const weatherType = globalScene.arena.weather?.weatherType;