mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
add public override to applyPostDamage
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
844fbe3d3f
commit
20ad144f52
@ -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 ];
|
||||||
|
Loading…
Reference in New Issue
Block a user