Class: Battle::Effects::Ability::Mimicry
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Mimicry ability effect
Constant Summary collapse
- TYPES =
Types based on terrains
{psychic_terrain: :psychic, misty_terrain: :fairy, grassy_terrain: :grass, electric_terrain: :electric}
Instance Method Summary collapse
-
#on_post_fterrain_change(handler, fterrain_type, last_fterrain)
Function called after the terrain was changed.
-
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one.
Instance Method Details
#on_post_fterrain_change(handler, fterrain_type, last_fterrain)
Function called after the terrain was changed
2059 2060 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2059 def on_post_fterrain_change(handler, fterrain_type, last_fterrain) end |
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one
2053 2054 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2053 def on_switch_event(handler, who, with) end |