Removing unneeded check fromcanApplyAbility

This commit is contained in:
Wlowscha 2025-02-18 09:12:32 +01:00
parent 085d32fac6
commit cf9ccbd3fb
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -1476,7 +1476,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
return false;
}
}
return (((this.isOnField() || ability.isBypassOnField) && this.hp > 0) || ability.isBypassFaint) && !ability.conditions.find(condition => !condition(this));
return ((this.isOnField() && this.hp > 0) || ability.isBypassFaint) && !ability.conditions.find(condition => !condition(this));
}
/**