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:25 +02:00 committed by GitHub
parent f7b2e8b02c
commit 6743b1214a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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