Fix hithealattr apply method

This commit is contained in:
Dean 2025-06-17 10:50:34 -07:00
parent 6c0d6dbe57
commit 3551f69b0e

View File

@ -2254,7 +2254,7 @@ export class HitHealAttr extends MoveEffectAttr {
* @returns true if the function succeeds
*/
apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean {
if (target.hasAbilityWithAttr(ReverseDrainAbAttr)) {
if (target.hasAbilityWithAttr("ReverseDrainAbAttr")) {
return false;
}