From 20ad144f5279f8de3e999c19a6472f5c49bf95cd Mon Sep 17 00:00:00 2001 From: muscode Date: Fri, 1 Nov 2024 10:34:10 -0600 Subject: [PATCH] add public override to applyPostDamage Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 4749a2d46c3..81206acc844 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -4914,7 +4914,7 @@ export class PostDamageForceSwitchAbAttr extends PostDamageAbAttr { * @param args N/A * @returns `true` if the switch-out logic was successfully applied */ - applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise { + public override applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise { const moveHistory = pokemon.getMoveHistory(); // Will not activate when the Pokémon's HP is lowered by cutting its own HP const fordbiddenAttackingMoves = [ Moves.BELLY_DRUM, Moves.SUBSTITUTE, Moves.CURSE, Moves.PAIN_SPLIT ];