Class: Battle::Effects::Ability::Mimicry

Inherits:
Ability
  • Object
show all
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

Instance Method Details

#on_post_fterrain_change(handler, fterrain_type, last_fterrain)

Function called after the terrain was changed

Parameters:

  • handler (Battle::Logic::FTerrainChangeHandler)
  • fterrain_type (Symbol) —

    :none, :electric_terrain, :grassy_terrain, :misty_terrain, :psychic_terrain

  • last_fterrain (Symbol) —

    :none, :electric_terrain, :grassy_terrain, :misty_terrain, :psychic_terrain



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

Parameters:



2053
2054
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2053

def on_switch_event(handler, who, with)
end