Class: Battle::Effects::Ability::Forecast
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Forecast ability effect
Instance Method Summary collapse
-
#on_post_weather_change(handler, weather_type, last_weather)
Function called after the weather was changed (on_post_weather_change).
-
#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 Pokemon has actually switched with another one.
-
#on_weather_effects_disabled_change(handler)
Function called when weather effects are suppressed or restored (e.g. Air Lock / Cloud Nine).
Instance Method Details
#on_post_weather_change(handler, weather_type, last_weather)
Function called after the weather was changed (on_post_weather_change)
1337 1338 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1337 def on_post_weather_change(handler, weather_type, last_weather) end |
#on_pre_ability_change(handler, _db_symbol, target, _launcher, _skill)
Function called when a pre_ability_change is checked
1349 1350 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1349 def on_pre_ability_change(handler, _db_symbol, target, _launcher, _skill) end |
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one
1331 1332 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1331 def on_switch_event(handler, who, with) end |
#on_weather_effects_disabled_change(handler)
Function called when weather effects are suppressed or restored (e.g. Air Lock / Cloud Nine)
1341 1342 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1341 def on_weather_effects_disabled_change(handler) end |