mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-15 03:49:33 +02:00
Update src/data/abilities/ability.ts
Co-authored-by: Dean <69436131+emdeann@users.noreply.github.com>
This commit is contained in:
parent
83be3961f5
commit
f7b2e8b02c
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user