Applies ability effects without checking conditions
The pokemon to apply this ability to
Whether or not the ability is a passive
Whether the call is simulated
Extra args passed to the function. Handled by child classes.
Applies the switch-out logic after the Pokémon takes damage. Checks various conditions based on the moves used by the Pokémon, the opponents' moves, and the Pokémon's health after damage to determine whether the switch-out should occur.
Returns a boolean describing whether the ability can be applied under current conditions
The pokemon to apply this ability to
Whether or not the ability is a passive
Whether the call is simulated
Extra args passed to the function. Handled by child classes.
true
if the ability can be applied, false
otherwise
Ability attribute for forcing a Pokémon to switch out after its health drops below half. This attribute checks various conditions related to the damage received, the moves used by the Pokémon and its opponents, and determines whether a forced switch-out should occur.
Used by Wimp Out and Emergency Exit
See
applyPostDamage