Class: Battle::Effects::Ability::Forecast

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

Overview

Class describing the Forecast ability effect

Instance Method Summary collapse

Instance Method Details

#on_post_weather_change(handler, weather_type, last_weather)

Function called after the weather was changed (on_post_weather_change)

Parameters:

  • handler (Battle::Logic::WeatherChangeHandler)
  • weather_type (Symbol) —

    :none, :rain, :sunny, :sandstorm, :hail, :fog

  • last_weather (Symbol) —

    :none, :rain, :sunny, :sandstorm, :hail, :fog



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

Parameters:



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

Parameters:



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)

Parameters:



1341
1342
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1341

def on_weather_effects_disabled_change(handler)
end