Protected
arenaApplies 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.
Checks if enemy Pokemon is trapped by an Arena Trap-esque ability If the enemy is a Ghost type, it is not trapped If the enemy has the ability Run Away, it is not trapped. If the user has Magnet Pull and the enemy is not a Steel type, it is not trapped. If the user has Arena Trap and the enemy is not grounded, it is not trapped.
N/A
Utils.BooleanHolder indicating whether the other Pokemon is trapped or not
The Pokemon that is affected by an Arena Trap ability
N/A
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
Determines whether a Pokemon is blocked from switching/running away because of a trapping ability or move.
See
applyCheckTrapped