add public override to applyPostDamage

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
muscode 2024-11-01 10:34:10 -06:00 committed by GitHub
parent 844fbe3d3f
commit 20ad144f52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4914,7 +4914,7 @@ export class PostDamageForceSwitchAbAttr extends PostDamageAbAttr {
* @param args N/A * @param args N/A
* @returns `true` if the switch-out logic was successfully applied * @returns `true` if the switch-out logic was successfully applied
*/ */
applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> { public override applyPostDamage(pokemon: Pokemon, damage: number, passive: boolean, simulated: boolean, args: any[]): boolean | Promise<boolean> {
const moveHistory = pokemon.getMoveHistory(); const moveHistory = pokemon.getMoveHistory();
// Will not activate when the Pokémon's HP is lowered by cutting its own HP // 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 ]; const fordbiddenAttackingMoves = [ Moves.BELLY_DRUM, Moves.SUBSTITUTE, Moves.CURSE, Moves.PAIN_SPLIT ];