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
f7b2e8b02c
commit
6743b1214a
@ -2120,7 +2120,7 @@ export abstract class PostAttackAbAttr extends AbAttr {
|
||||
/** The default `attackCondition` requires that the selected move is a damaging move */
|
||||
constructor(
|
||||
attackCondition: PokemonAttackCondition = (_user, _target, move) => {
|
||||
if (!_user) {
|
||||
if (isNullOrUndefined(user)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user