Class: Battle::Effects::Ability::ZeroToHero
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Zero To Hero ability
Instance Method Summary collapse
-
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one.
-
#should_activate?(who) ⇒ Boolean
Check whether the ability should be activated when the pokémon returns to battle.
-
#switch_form(handler, with)
Proceed with the change of form.
Instance Method Details
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one
4279 4280 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4279 def on_switch_event(handler, who, with) end |
#should_activate?(who) ⇒ Boolean
Check whether the ability should be activated when the pokémon returns to battle
4283 4284 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4283 def should_activate?(who) end |
#switch_form(handler, with)
Proceed with the change of form
4288 4289 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4288 def switch_form(handler, with) end |