Class: Battle::Effects::Ability::ZeroToHero

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

Overview

Class describing the Zero To Hero ability

Instance Method Summary collapse

Instance Method Details

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



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

Parameters:

Returns:

  • (Boolean)


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

Parameters:



4288
4289
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4288

def switch_form(handler, with)
end