Update src/data/abilities/ability.ts

Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
This commit is contained in:
thisPieonFire 2025-08-11 10:45:11 +02:00 committed by GitHub
parent 83be3961f5
commit f7b2e8b02c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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));