From 74ccf84b30dfe4e580f19e51d4ca6a9decbb026b Mon Sep 17 00:00:00 2001 From: innerthunder <168692175+innerthunder@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:24:51 -0700 Subject: [PATCH] Update src/modifier/modifier.ts Co-authored-by: Amani H. <109637146+xsn34kzx@users.noreply.github.com> --- src/modifier/modifier.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modifier/modifier.ts b/src/modifier/modifier.ts index a1d6ce0b929..a61e4400951 100644 --- a/src/modifier/modifier.ts +++ b/src/modifier/modifier.ts @@ -934,11 +934,7 @@ export class EvolutionStatBoosterModifier extends StatBoosterModifier { * @returns true if the stat boosts can be applied, false otherwise */ shouldApply(args: any[]): boolean { - const holder = args[0]; - if (!(holder instanceof Pokemon)) { - return false; - } - return super.shouldApply(args) && !holder.isMax(); + return super.shouldApply(args) && !(args[0] as Pokemon).isMax(); } /**