Class: Battle::Effects::Ability::HungerSwitch

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

Overview

Class describing the Hunger Switch ability effect

Instance Method Summary collapse

Instance Method Details

#on_end_turn_event(logic, scene, battlers)

Function called at the end of a turn

Parameters:



1650
1651
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1650

def on_end_turn_event(logic, scene, battlers)
end

#on_post_damage_death(handler, hp, target, launcher, skill)

Function called after damages were applied and when target died (post_damage_death)

Parameters:



1664
1665
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1664

def on_post_damage_death(handler, hp, target, launcher, skill)
end

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



1656
1657
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1656

def on_switch_event(handler, who, with)
end