Class: Battle::Effects::Ability::PrimalWeatherBase
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class defining the Base for Primal Weather abilities
Direct Known Subclasses
Constant Summary collapse
- PRIMAL_WEATHERS =
List of weathers that can be set by a Primal Weather ability
%i[hardsun hardrain strong_winds]
Instance Method Summary collapse
-
#on_post_damage_death(handler, hp, target, launcher, skill)
Function called after damages were applied and when target died (post_damage_death).
-
#on_pre_ability_change(handler, _db_symbol, target, _launcher, _skill)
Function called when a pre_ability_change is checked.
-
#on_switch_event(handler, who, with)
Function called when a creature has actually switched with another one.
-
#on_switch_in(handler, with)
Function called when the Primal Weather Pokémon switches in.
-
#on_switch_out(handler, who)
Function called when the Primal Weather Pokémon switches out.
Instance Method Details
#on_post_damage_death(handler, hp, target, launcher, skill)
Function called after damages were applied and when target died (post_damage_death)
2669 2670 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2669 def on_post_damage_death(handler, hp, target, launcher, skill) end |
#on_pre_ability_change(handler, _db_symbol, target, _launcher, _skill)
Function called when a pre_ability_change is checked
2677 2678 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2677 def on_pre_ability_change(handler, _db_symbol, target, _launcher, _skill) end |
#on_switch_event(handler, who, with)
Function called when a creature has actually switched with another one
2651 2652 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2651 def on_switch_event(handler, who, with) end |
#on_switch_in(handler, with)
Function called when the Primal Weather Pokémon switches in
2661 2662 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2661 def on_switch_in(handler, with) end |
#on_switch_out(handler, who)
Function called when the Primal Weather Pokémon switches out
2656 2657 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2656 def on_switch_out(handler, who) end |