Class: Battle::Effects::Ability::PrimalWeatherBase

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

Overview

Class defining the Base for Primal Weather abilities

Direct Known Subclasses

DesolateLand

Constant Summary collapse

PRIMAL_WEATHERS =

List of weathers that can be set by a Primal Weather ability

Returns:

  • (Array<Symbol>) —

    list of weathers

%i[hardsun hardrain strong_winds]

Instance Method Summary collapse

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)

Parameters:



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

Parameters:



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

Parameters:



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

Parameters:



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

Parameters:



2656
2657
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2656

def on_switch_out(handler, who)
end