From f7b2e8b02cbc792d866256ab10fe92536f84327c Mon Sep 17 00:00:00 2001 From: thisPieonFire Date: Mon, 11 Aug 2025 10:45:11 +0200 Subject: [PATCH] Update src/data/abilities/ability.ts Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com> --- src/data/abilities/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/abilities/ability.ts b/src/data/abilities/ability.ts index 1ef76af50de..97953dd6169 100644 --- a/src/data/abilities/ability.ts +++ b/src/data/abilities/ability.ts @@ -1983,7 +1983,7 @@ export class AllyMoveCategoryPowerBoostAbAttr extends FieldMovePowerBoostAbAttr */ constructor(boostedCategories: MoveCategory[], powerMultiplier: number) { super((_pokemon, _defender, move) => { - if (_pokemon === null) { + if (isNullOrUndefined(pokemon)) { return false; } return boostedCategories.includes(_pokemon.getMoveCategory(_defender, move));