Class: Battle::Effects::Ability::ShadowTag

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Shadow Tag ability effect

Direct Known Subclasses

ArenaTrap, MagnetPull, SuctionCups

Instance Method Summary collapse

Instance Method Details

#on_switch_prevention(handler, pokemon, skill, reason) ⇒ :prevent?

Function called when testing if pokemon can switch (when he couldn't passthrough)

Parameters:

Returns:

  • (:prevent, nil) —

    if :prevent, can_switch? will return false



229
230
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 229

def on_switch_prevention(handler, pokemon, skill, reason)
end